core, fix crash if image couldn't be loaded

This commit is contained in:
kub 2023-06-03 07:50:23 +00:00
parent d8a897a6db
commit 78562415ff

View file

@ -395,7 +395,7 @@ out:
if (rom_file)
pm_close(rom_file);
if (rom_data)
free(rom_data);
PicoCartUnload();
return media_type;
}