Libretro: Fix a crash if no core is loaded
Jeffrey Pfau jeffrey@endrift.com
Sun, 08 May 2016 11:26:24 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/platform/libretro/libretro.c
→
src/platform/libretro/libretro.c
@@ -350,6 +350,9 @@ return true;
} void retro_unload_game(void) { + if (!core) { + return; + } core->deinit(core); mappedMemoryFree(data, dataSize); data = 0;