GBA Memory: Fix instability on Wii when using AGBPrint

This commit is contained in:
Vicki Pfau 2020-08-03 15:44:05 -07:00
parent 5caf256631
commit b02fba9d28
2 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,7 @@ Other fixes:
- FFmpeg: Fix encoding of time base
- GB Core: Fix extracting SRAM when none is present
- GBA: Fix leak if attempting to load BIOS multiple times
- GBA Memory: Fix instability on Wii when using AGBPrint
- GBA Savedata: Fix extracting save when not yet configured in-game
- Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642)
- Qt: Fix static compilation in MinGW (fixes mgba.io/i/1769)

View File

@ -130,7 +130,9 @@ void GBAUnloadROM(struct GBA* gba) {
if (gba->yankedRomSize) {
gba->yankedRomSize = 0;
}
#if !defined(FIXED_ROM_BUFFER) && !defined(__wii__)
mappedMemoryFree(gba->memory.rom, SIZE_CART0);
#endif
}
if (gba->romVf) {