mirror of https://github.com/mgba-emu/mgba.git
GBA Core: Fix memory leak when loading symbols
This commit is contained in:
parent
0b35121360
commit
4dcb28ea70
1
CHANGES
1
CHANGES
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue