From 9ac4dfb0f0ba5be3f21bd3904c99ba67543b1833 Mon Sep 17 00:00:00 2001 From: Richard Knight Date: Thu, 25 Aug 2022 18:14:53 +0100 Subject: fixed string and array memory leaks --- include/connection.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/connection.h') diff --git a/include/connection.h b/include/connection.h index e67ea27..cf3fb2e 100644 --- a/include/connection.h +++ b/include/connection.h @@ -19,8 +19,8 @@ */ -#ifndef CONNECTION_H -#define CONNECTION_H +#ifndef CSSQLDB_CONNECTION_H +#define CSSQLDB_CONNECTION_H #include #include "logindata.h" @@ -68,7 +68,7 @@ struct ConnectionData { void Close(csnd::Csound* csound); void Exec(char* sql); MYFLT Scalar(char* sql, int row, int col); - char* ScalarString(char* sql, int row=0, int col=0); + char* ScalarString(char* sql, csnd::Csound* csound, int row=0, int col=0); void ArrayQuery(char* sql, csnd::Csound* csound, ARRAYDAT* array); void ArrayQueryString(char* sql, csnd::Csound* csound, ARRAYDAT* array); }; -- cgit v1.2.3