all repos — mgba @ f3ec9db9d7c8988fad58cbd650697aa87f3e29fb

mGBA Game Boy Advance Emulator

Core: Fix crash when exiting game with cheats loaded
Vicki Pfau vi@endrift.com
Sat, 22 Jun 2019 13:03:53 -0700
commit

f3ec9db9d7c8988fad58cbd650697aa87f3e29fb

parent

3f044a5791166da2f05f1e72c8d6d06b6cd2d846

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -33,6 +33,7 @@ - Qt: Fix FPS target maxing out at 59.727 (fixes mgba.io/i/1421)

- Core: Fix crashes if core directories aren't set - Qt: Fix menu bar staying hidden in full screen (fixes mgba.io/i/317) - GB SIO: Fix lockstep failing games aren't reloaded + - Core: Fix crash when exiting game with cheats loaded Misc: - GBA Savedata: EEPROM performance fixes - GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
M src/core/cheats.csrc/core/cheats.c

@@ -83,11 +83,11 @@ set->enabled = true;

} void mCheatSetDeinit(struct mCheatSet* set) { - mCheatListDeinit(&set->list); size_t i; for (i = 0; i < StringListSize(&set->lines); ++i) { free(*StringListGetPointer(&set->lines, i)); } + mCheatListDeinit(&set->list); if (set->name) { free(set->name); }