Fix memory leak of sqlite input reader prepared statement

This commit is contained in:
Jon Siwek 2019-12-27 08:08:46 -08:00
parent 9e07b8a9f1
commit 13831ca21b

View file

@ -49,6 +49,9 @@ SQLite::~SQLite()
void SQLite::DoClose() void SQLite::DoClose()
{ {
sqlite3_finalize(st);
st = nullptr;
if ( db != 0 ) if ( db != 0 )
{ {
sqlite3_close(db); sqlite3_close(db);