From 3abd2ca0289ef1bd0ec10340b047304202a3cb3b Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Thu, 3 Mar 2016 00:04:36 -0800 Subject: [PATCH] Core: Clean up after core has been deinited --- src/gb/core.c | 1 + src/gba/core.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/gb/core.c b/src/gb/core.c index a4819348a..ec425c8f5 100644 --- a/src/gb/core.c +++ b/src/gb/core.c @@ -54,6 +54,7 @@ static void _GBCoreDeinit(struct mCore* core) { #if !defined(MINIMAL_CORE) || MINIMAL_CORE < 2 mDirectorySetDeinit(&core->dirs); #endif + free(core); } static enum mPlatform _GBCorePlatform(struct mCore* core) { diff --git a/src/gba/core.c b/src/gba/core.c index 7623a8d86..9399e25fa 100644 --- a/src/gba/core.c +++ b/src/gba/core.c @@ -64,6 +64,7 @@ static void _GBACoreDeinit(struct mCore* core) { #if !defined(MINIMAL_CORE) || MINIMAL_CORE < 2 mDirectorySetDeinit(&core->dirs); #endif + free(core); } static enum mPlatform _GBACorePlatform(struct mCore* core) {