all repos — mgba @ b28f5b33b52f2f9bf07688c649a1c51f1eb946db

mGBA Game Boy Advance Emulator

SQLite: Fix memory leaks in No-Intro DB
Vicki Pfau vi@endrift.com
Wed, 08 May 2019 12:49:15 -0700
commit

b28f5b33b52f2f9bf07688c649a1c51f1eb946db

parent

f66cf65e5b5cb97638f3c239def9fde56085b724

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/feature/sqlite3/no-intro.csrc/feature/sqlite3/no-intro.c

@@ -263,6 +263,8 @@ free((void*) buffer.romName);

free((void*) dbType); free((void*) dbVersion); + sqlite3_finalize(gamedbTable); + sqlite3_finalize(gamedbDrop); sqlite3_finalize(gameTable); sqlite3_finalize(romTable);

@@ -275,6 +277,7 @@ return true;

} void NoIntroDBDestroy(struct NoIntroDB* db) { + sqlite3_finalize(db->crc32); sqlite3_close(db->db); free(db); }