GBA Core: Fix memory leak when loading symbols
Vicki Pfau vi@endrift.com
Mon, 17 Aug 2020 00:57:33 -0700
2 files changed,
6 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -10,6 +10,7 @@ - 3DS: Redo video sync to be more precise
- 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
M
src/gba/core.c
→
src/gba/core.c
@@ -216,6 +216,11 @@ mappedMemoryFree(core->board, sizeof(struct GBA));
#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);