Fixed mem leak in clientprefs

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402310
This commit is contained in:
Matt Woodrow
2008-06-30 23:07:54 +00:00
parent 8a5d833c89
commit cdf54a3db1
3 changed files with 10 additions and 2 deletions
+2
View File
@@ -98,6 +98,7 @@ TQueryOp::TQueryOp(IDatabase *db, const char *query, enum querytype type, int cl
m_Query = query;
m_type = type;
m_client = client;
m_pQuery = NULL;
m_pDatabase->IncReferenceCount();
}
@@ -108,6 +109,7 @@ TQueryOp::TQueryOp(IDatabase *db, const char *query, enum querytype type, Cookie
m_Query = query;
m_type = type;
pCookie = cookie;
m_pQuery = NULL;
m_pDatabase->IncReferenceCount();
}