MMC3: Make sure to free any allocated memory when using MMC3 as an external module.

This commit is contained in:
negativeExponent
2020-03-17 22:10:39 +08:00
parent 04ba2ac450
commit 7602b0b613
16 changed files with 19 additions and 3 deletions

View File

@@ -289,7 +289,7 @@ void GenMMC3Power(void) {
FCEU_dwmemset(CHRRAM, 0, CHRRAMSIZE);
}
static void GenMMC3Close(void) {
void GenMMC3Close(void) {
if (CHRRAM)
FCEU_gfree(CHRRAM);
if (WRAM)