Core/DB Layer: Fix a memory leak for synchronously executed prepared statements.

This commit is contained in:
Machiavelli
2012-03-26 08:58:21 +02:00
parent 43048afc7e
commit 70ee37f3b4

View File

@@ -268,6 +268,9 @@ class DatabaseWorkerPool
PreparedResultSet* ret = t->Query(stmt);
t->Unlock();
//! Delete proxy-class. Not needed anymore
delete stmt;
if (!ret || !ret->GetRowCount())
return PreparedQueryResult(NULL);