Fixed issues reported by BurnExitMemoryManager() in misc_pre90s drivers
This commit is contained in:
parent
2b70e30ea3
commit
aa2c65d45f
|
@ -301,15 +301,15 @@ static INT32 DrvFrame()
|
||||||
|
|
||||||
static INT32 DrvExit()
|
static INT32 DrvExit()
|
||||||
{
|
{
|
||||||
|
BurnFree (Mem);
|
||||||
|
BurnFree (pFMBuffer);
|
||||||
|
|
||||||
Mem = Rom = Prom = RomBank = VideoRam = framebuffer = NULL;
|
Mem = Rom = Prom = RomBank = VideoRam = framebuffer = NULL;
|
||||||
Palette = NULL;
|
Palette = NULL;
|
||||||
pFMBuffer = NULL;
|
pFMBuffer = NULL;
|
||||||
AY8910Exit(0);
|
AY8910Exit(0);
|
||||||
ZetExit();
|
ZetExit();
|
||||||
|
|
||||||
BurnFree (Mem);
|
|
||||||
BurnFree (pFMBuffer);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -394,6 +394,7 @@ static INT32 DrvExit()
|
||||||
GenericTilesExit();
|
GenericTilesExit();
|
||||||
|
|
||||||
BurnFree (Mem);
|
BurnFree (Mem);
|
||||||
|
BurnFree (pFMBuffer);
|
||||||
|
|
||||||
DrvRecalcPal = 0;
|
DrvRecalcPal = 0;
|
||||||
flipscreen = 0;
|
flipscreen = 0;
|
||||||
|
|
Loading…
Reference in New Issue