No-Intro: Make sure to commit pending transactions

This commit is contained in:
Jeffrey Pfau 2017-01-11 23:12:23 -08:00
parent 6078232af0
commit 9942c1d444
1 changed files with 3 additions and 0 deletions

View File

@ -266,6 +266,9 @@ bool NoIntroDBLoadClrMamePro(struct NoIntroDB* db, struct VFile* vf) {
sqlite3_finalize(gameTable);
sqlite3_finalize(romTable);
if (remainingInTransaction) {
sqlite3_exec(db->db, "COMMIT;", NULL, NULL, NULL);
}
sqlite3_exec(db->db, "VACUUM", NULL, NULL, NULL);
return true;