GBA Memory: Fix copy-on-write memory leak
Vicki Pfau vi@endrift.com
Mon, 08 Jan 2018 23:49:48 -0800
2 files changed,
2 insertions(+),
0 deletions(-)
M
CHANGES
→
CHANGES
@@ -37,6 +37,7 @@ - LR35902: Fix watchpoints not reporting new value
- GBA Audio: Increase PSG volume (fixes mgba.io/i/932) - 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 Timer: Use global cycles for timers - GBA: Extend oddly-sized ROMs to full address space (fixes mgba.io/i/722)
M
src/gba/memory.c
→
src/gba/memory.c
@@ -1635,6 +1635,7 @@ gba->romVf = NULL;
} gba->memory.rom = newRom; gba->memory.hw.gpioBase = &((uint16_t*) gba->memory.rom)[GPIO_REG_DATA >> 1]; + gba->isPristine = false; } void GBAPrintFlush(struct GBA* gba) {