Merge pull request #11 from santazhang/fix-leak

fix memory leak in SQLStatementList
This commit is contained in:
David Schwalb 2015-11-01 15:00:40 +01:00
commit 53ce86f524
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@ public:
}; };
virtual ~SQLStatementList() { virtual ~SQLStatementList() {
for (std::vector<SQLStatement*>::iterator it = statements.begin(); it != statements.end(); ++it) {
delete *it;
}
delete parser_msg; delete parser_msg;
} }