mirror of https://github.com/mgba-emu/mgba.git
Core: Fix crash if library can't be opened
This commit is contained in:
parent
765cc08136
commit
492ba2478c
1
CHANGES
1
CHANGES
|
@ -38,6 +38,7 @@ Emulation fixes:
|
||||||
Other fixes:
|
Other fixes:
|
||||||
- Core: Don't attempt to restore rewind diffs past start of rewind
|
- 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 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 crash when encoding audio with some containers
|
||||||
- FFmpeg: Fix GIF recording (fixes mgba.io/i/2393)
|
- FFmpeg: Fix GIF recording (fixes mgba.io/i/2393)
|
||||||
- GB: Fix temporary saves
|
- GB: Fix temporary saves
|
||||||
|
|
|
@ -199,6 +199,10 @@ error:
|
||||||
}
|
}
|
||||||
|
|
||||||
void mLibraryDestroy(struct mLibrary* library) {
|
void mLibraryDestroy(struct mLibrary* library) {
|
||||||
|
if (!library) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
sqlite3_finalize(library->insertPath);
|
sqlite3_finalize(library->insertPath);
|
||||||
sqlite3_finalize(library->insertRom);
|
sqlite3_finalize(library->insertRom);
|
||||||
sqlite3_finalize(library->insertRoot);
|
sqlite3_finalize(library->insertRoot);
|
||||||
|
|
Loading…
Reference in New Issue