Wii: Fix crash on unloading irregularly sized GBA ROMs

This commit is contained in:
Vicki Pfau 2020-11-18 18:36:19 -08:00
parent f05ba8a35b
commit 510d1e60fc
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ Other fixes:
- Core: Fix thread unsafety issue when dispatching code to a thread
- Debugger: Close trace log when done tracing
- Qt: Fix running proxied video if it gets pushed to the main thread
- Wii: Fix crash on unloading irregularly sized GBA ROMs
0.8.4: (2020-10-29)
Emulation fixes:

View File

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