Mem leak fix for async query code
This commit is contained in:
parent
d736517287
commit
d71e9c76ee
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ ThreadReturnType DBAsyncQueries(void* str)
|
||||||
Sleep(10);
|
Sleep(10);
|
||||||
DBStruct* data = (DBStruct*)str;
|
DBStruct* data = (DBStruct*)str;
|
||||||
database.RunAsyncQueries(data->queryid);
|
database.RunAsyncQueries(data->queryid);
|
||||||
|
delete data;
|
||||||
THREAD_RETURN(NULL);
|
THREAD_RETURN(NULL);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue