GBA Core: Fix memory leak when loading symbols

This commit is contained in:
Vicki Pfau 2020-08-17 00:57:33 -07:00
parent 0b35121360
commit 4dcb28ea70
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,7 @@ Other fixes:
- 3DS: Fix crash with libctru 2.0 when exiting
- Core: Fix reported ROM size when a fixed buffer size is used
- GBA: Disable more checks when loading GS save with checks disabled (fixes mgba.io/i/1851)
- GBA Core: Fix memory leak when loading symbols
- Qt: Add dummy English translation file (fixes mgba.io/i/1469)
- mGUI: Fix closing down a game if an exit is signalled
- mVL: Fix injecting accidentally draining non-injection buffer

View File

@ -216,6 +216,11 @@ static void _GBACoreDeinit(struct mCore* core) {
#if !defined(MINIMAL_CORE) || MINIMAL_CORE < 2
mDirectorySetDeinit(&core->dirs);
#endif
#ifdef USE_DEBUGGERS
if (core->symbolTable) {
mDebuggerSymbolTableDestroy(core->symbolTable);
}
#endif
struct GBACore* gbacore = (struct GBACore*) core;
free(gbacore->debuggerPlatform);