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) {