all repos — mgba @ 6562e1cfecca7e0927e1a065b80131eb8c5e6f30

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

6562e1cfecca7e0927e1a065b80131eb8c5e6f30

parent

7ea054ee01d0203fd9e50bc6263344d185cb6176

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); }