GB: Deinit sram

This commit is contained in:
Jeffrey Pfau 2016-02-14 23:10:51 -08:00
parent 85e789c3e9
commit b6fc26a7bf
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ void GBUnloadROM(struct GB* gb) {
if (gb->sramVf) {
gb->sramVf->unmap(gb->sramVf, gb->memory.sram, 0x8000);
gb->sramVf = 0;
} else if (gb->memory.sram) {
mappedMemoryFree(gb->memory.sram, 0x8000);
}