GBA Memory: Fix copy-on-write memory leak

This commit is contained in:
Vicki Pfau 2018-01-08 23:49:48 -08:00
parent a74fe13506
commit 98be8d30aa
2 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ Bugfixes:
- GBA BIOS: Fix incorrect exit condition in LZ77
- 3DS: Fix opening files in directory names with trailing slashes
- GB MBC: Fix MBC2 saves (fixes mgba.io/i/954)
- GBA Memory: Fix copy-on-write memory leak
Misc:
- GBA: Improve multiboot image detection
- GB MBC: Remove erroneous bank 0 wrapping

View File

@ -1561,4 +1561,5 @@ void _pristineCow(struct GBA* gba) {
}
gba->memory.rom = newRom;
gba->memory.hw.gpioBase = &((uint16_t*) gba->memory.rom)[GPIO_REG_DATA >> 1];
gba->isPristine = false;
}