all repos — mgba @ f4522c3942f45fd3e9711ec2e723ac288cf51377

mGBA Game Boy Advance Emulator

GBA Core: Fix memory leak when loading symbols
Vicki Pfau vi@endrift.com
Mon, 17 Aug 2020 00:57:33 -0700
commit

f4522c3942f45fd3e9711ec2e723ac288cf51377

parent

5f68358e8b1dae5eafaf49b21c5cbca04a5721bb

2 files changed, 6 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -44,6 +44,7 @@ - FFmpeg: Fix some small memory leaks

- 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
M src/gba/core.csrc/gba/core.c

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