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

@@ -175,6 +175,10 @@ static void BS110Reset(void)
MMC3RegReset();
}
static void BS110Close(void) {
GenMMC3Close();
if (WRAM)
FCEU_free(WRAM);
WRAM = NULL;
}
void BS110_Init(CartInfo *info) {