diff --git a/src/burn/drivers/misc_pre90s/d_quizo.cpp b/src/burn/drivers/misc_pre90s/d_quizo.cpp index 3ad752c44..2cd4b9754 100644 --- a/src/burn/drivers/misc_pre90s/d_quizo.cpp +++ b/src/burn/drivers/misc_pre90s/d_quizo.cpp @@ -301,15 +301,15 @@ static INT32 DrvFrame() static INT32 DrvExit() { + BurnFree (Mem); + BurnFree (pFMBuffer); + Mem = Rom = Prom = RomBank = VideoRam = framebuffer = NULL; Palette = NULL; pFMBuffer = NULL; AY8910Exit(0); ZetExit(); - BurnFree (Mem); - BurnFree (pFMBuffer); - return 0; } diff --git a/src/burn/drivers/misc_pre90s/d_scregg.cpp b/src/burn/drivers/misc_pre90s/d_scregg.cpp index c6c99efbc..6dac25621 100644 --- a/src/burn/drivers/misc_pre90s/d_scregg.cpp +++ b/src/burn/drivers/misc_pre90s/d_scregg.cpp @@ -394,6 +394,7 @@ static INT32 DrvExit() GenericTilesExit(); BurnFree (Mem); + BurnFree (pFMBuffer); DrvRecalcPal = 0; flipscreen = 0;