From e9c64a87bcd58fe699caaacb1a7b6aeb59c4359d Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sun, 30 Aug 2015 16:22:33 -0700 Subject: [PATCH] GBA: Deinit savegame when unloading a ROM --- CHANGES | 1 + src/gba/gba.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index 41419ef4c..bd9c431d6 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: Window size command line options are now supported - Qt: Increase usability of key mapper diff --git a/src/gba/gba.c b/src/gba/gba.c index e44d0f83d..49aed1c58 100644 --- a/src/gba/gba.c +++ b/src/gba/gba.c @@ -122,6 +122,8 @@ void GBAUnloadROM(struct GBA* gba) { gba->pristineRom = 0; gba->romVf = 0; } + + GBASavedataDeinit(&gba->memory.savedata); } void GBADestroy(struct GBA* gba) {