Fixed issues reported by BurnExitMemoryManager() in misc_pre90s drivers

This commit is contained in:
Barry Harris 2011-12-12 10:40:35 +00:00
parent 2b70e30ea3
commit aa2c65d45f
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -394,6 +394,7 @@ static INT32 DrvExit()
GenericTilesExit();
BurnFree (Mem);
BurnFree (pFMBuffer);
DrvRecalcPal = 0;
flipscreen = 0;