mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
core, fix crash if image couldn't be loaded
This commit is contained in:
parent
d8a897a6db
commit
78562415ff
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ out:
|
||||||
if (rom_file)
|
if (rom_file)
|
||||||
pm_close(rom_file);
|
pm_close(rom_file);
|
||||||
if (rom_data)
|
if (rom_data)
|
||||||
free(rom_data);
|
PicoCartUnload();
|
||||||
return media_type;
|
return media_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue