all repos — mgba @ e75b2928b175191636117ce58b5ea8f9d277f52a

mGBA Game Boy Advance Emulator

Libretro: Fix a crash if no core is loaded
Jeffrey Pfau jeffrey@endrift.com
Sun, 08 May 2016 11:26:24 -0700
commit

e75b2928b175191636117ce58b5ea8f9d277f52a

parent

890b063ea5e3f7e4a6e742a57619c7ef959d8a0e

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/platform/libretro/libretro.csrc/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;