mirror of https://github.com/mgba-emu/mgba.git
Core: Clean up after core has been deinited
This commit is contained in:
parent
1f204c8eef
commit
3abd2ca028
|
@ -54,6 +54,7 @@ static void _GBCoreDeinit(struct mCore* core) {
|
||||||
#if !defined(MINIMAL_CORE) || MINIMAL_CORE < 2
|
#if !defined(MINIMAL_CORE) || MINIMAL_CORE < 2
|
||||||
mDirectorySetDeinit(&core->dirs);
|
mDirectorySetDeinit(&core->dirs);
|
||||||
#endif
|
#endif
|
||||||
|
free(core);
|
||||||
}
|
}
|
||||||
|
|
||||||
static enum mPlatform _GBCorePlatform(struct mCore* core) {
|
static enum mPlatform _GBCorePlatform(struct mCore* core) {
|
||||||
|
|
|
@ -64,6 +64,7 @@ static void _GBACoreDeinit(struct mCore* core) {
|
||||||
#if !defined(MINIMAL_CORE) || MINIMAL_CORE < 2
|
#if !defined(MINIMAL_CORE) || MINIMAL_CORE < 2
|
||||||
mDirectorySetDeinit(&core->dirs);
|
mDirectorySetDeinit(&core->dirs);
|
||||||
#endif
|
#endif
|
||||||
|
free(core);
|
||||||
}
|
}
|
||||||
|
|
||||||
static enum mPlatform _GBACorePlatform(struct mCore* core) {
|
static enum mPlatform _GBACorePlatform(struct mCore* core) {
|
||||||
|
|
Loading…
Reference in New Issue