From 5f68358e8b1dae5eafaf49b21c5cbca04a5721bb Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Mon, 17 Aug 2020 00:56:53 -0700 Subject: [PATCH] GB Core: Separate out dir and symbol table cleanup --- src/gb/core.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gb/core.c b/src/gb/core.c index e54db230f..6cb84cf95 100644 --- a/src/gb/core.c +++ b/src/gb/core.c @@ -129,8 +129,10 @@ static void _GBCoreDeinit(struct mCore* core) { GBDestroy(core->board); mappedMemoryFree(core->cpu, sizeof(struct SM83Core)); mappedMemoryFree(core->board, sizeof(struct GB)); -#if defined USE_DEBUGGERS && (!defined(MINIMAL_CORE) || MINIMAL_CORE < 2) +#if !defined(MINIMAL_CORE) || MINIMAL_CORE < 2 mDirectorySetDeinit(&core->dirs); +#endif +#ifdef USE_DEBUGGERS if (core->symbolTable) { mDebuggerSymbolTableDestroy(core->symbolTable); }