diff --git a/CHANGES b/CHANGES index 60d0f7584..bcbe0cb1e 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,7 @@ Bugfixes: - Qt: Fix drag and drop on Windows - Qt: Reenable double buffering, as disabling it broke some Windows configs - GBA Video: Start on the scanline BIOS finishes on if no BIOS is loaded + - GBA: Deinit savegame when unloading a ROM Misc: - Qt: Remove useless help icons in dialogs diff --git a/src/gba/gba.c b/src/gba/gba.c index 2ae273760..b308b7061 100644 --- a/src/gba/gba.c +++ b/src/gba/gba.c @@ -113,6 +113,8 @@ void GBAUnloadROM(struct GBA* gba) { gba->pristineRom = 0; gba->romVf = 0; } + + GBASavedataDeinit(&gba->memory.savedata); } void GBADestroy(struct GBA* gba) {