GBA Core: Fix memory leak when loading symbols

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

View File

@ -44,6 +44,7 @@ Other fixes:
- FFmpeg: Fix encoding of time base
- GBA: Disable more checks when loading GS save with checks disabled (fixes mgba.io/i/1851)
- GBA: Fix endianness issues in renderer proxy
- GBA Core: Fix memory leak when loading symbols
- Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642)
- Qt: Fix static compilation in MinGW (fixes mgba.io/i/1769)
- Qt: Fix a race condition in the frame inspector

View File

@ -220,6 +220,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);