GB Core: Separate out dir and symbol table cleanup

This commit is contained in:
Vicki Pfau 2020-08-17 00:56:53 -07:00
parent b6a3133a13
commit 5f68358e8b
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}