Core: Fix crash if library can't be opened

This commit is contained in:
Vicki Pfau 2022-05-01 17:02:50 -07:00
parent 765cc08136
commit 492ba2478c
2 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,7 @@ Emulation fixes:
Other fixes:
- Core: Don't attempt to restore rewind diffs past start of rewind
- Core: Fix the runloop resuming after a game has crashed (fixes mgba.io/i/2451)
- Core: Fix crash if library can't be opened
- FFmpeg: Fix crash when encoding audio with some containers
- FFmpeg: Fix GIF recording (fixes mgba.io/i/2393)
- GB: Fix temporary saves

View File

@ -199,6 +199,10 @@ error:
}
void mLibraryDestroy(struct mLibrary* library) {
if (!library) {
return;
}
sqlite3_finalize(library->insertPath);
sqlite3_finalize(library->insertRom);
sqlite3_finalize(library->insertRoot);