32x, fix disabling via ADEN (memory leak, mcd)

This commit is contained in:
kub 2023-07-03 23:29:51 +02:00
parent 9f7abd68df
commit 9961d9fdb8
3 changed files with 11 additions and 6 deletions

View file

@ -908,8 +908,7 @@ void PicoCartUnload(void)
PicoCartUnloadHook = NULL;
}
if (PicoIn.AHW & PAHW_32X)
PicoUnload32x();
PicoUnload32x();
if (Pico.rom != NULL) {
SekFinishIdleDet();