mirror of https://github.com/mgba-emu/mgba.git
Libretro: Fix a crash if no core is loaded
This commit is contained in:
parent
890b063ea5
commit
e75b2928b1
|
@ -350,6 +350,9 @@ bool retro_load_game(const struct retro_game_info* game) {
|
|||
}
|
||||
|
||||
void retro_unload_game(void) {
|
||||
if (!core) {
|
||||
return;
|
||||
}
|
||||
core->deinit(core);
|
||||
mappedMemoryFree(data, dataSize);
|
||||
data = 0;
|
||||
|
|
Loading…
Reference in New Issue