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

@@ -55,6 +55,7 @@ static DECLFW(M269Write5) {
}
static void M269Close(void) {
GenMMC3Close();
if (CHRROM)
FCEU_free(CHRROM);
CHRROM = NULL;