Fixed crash in debugger's PrintGlyph() when restarting AppleII virtual machine

Fixed mem leaks for debugger's Font & Mem frame buffers
This commit is contained in:
tomcw
2020-06-28 10:18:59 +01:00
parent 60d54d6f3b
commit 9bf0cf98d4
3 changed files with 27 additions and 14 deletions

View File

@@ -8843,11 +8843,7 @@ void DebugDestroy ()
}
// TODO: DataDisassembly_Clear()
DeleteObject( g_hConsoleBrushFG );
DeleteObject( g_hConsoleBrushBG );
DeleteDC( g_hConsoleFontDC );
DeleteObject( g_hConsoleFontBitmap );
ReleaseConsoleFontDC();
}