Libretro: Do game unload cleanup

This commit is contained in:
Jeffrey Pfau 2015-03-08 22:49:53 -07:00
parent 6c5a1315ea
commit f90ac6e9a9
1 changed files with 6 additions and 1 deletions

View File

@ -182,7 +182,12 @@ bool retro_load_game(const struct retro_game_info* game) {
} }
void retro_unload_game(void) { void retro_unload_game(void) {
// TODO rom->close(rom);
rom = 0;
save->close(save);
save = 0;
free(savedata);
savedata = 0;
} }
size_t retro_serialize_size(void) { size_t retro_serialize_size(void) {