mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-10-31 20:08:02 +00:00
Fixed mem leak after a VM restart. (Fixes #809)
This commit is contained in:
parent
82c09abd54
commit
6dd129532f
@ -703,6 +703,7 @@ static LPBYTE g_pSourcePixels = NULL;
|
||||
|
||||
static void V_CreateDIBSections(void)
|
||||
{
|
||||
if (!g_pSourcePixels) // NB. Will be non-zero after a VM restart (GH#809)
|
||||
g_pSourcePixels = new BYTE[SRCOFFS_TOTAL * MAX_SOURCE_Y];
|
||||
|
||||
// CREATE THE OFFSET TABLE FOR EACH SCAN LINE IN THE SOURCE IMAGE
|
||||
|
Loading…
Reference in New Issue
Block a user