Fix memory leak of Decompress buffer in client wf_Bitmap_Free

This commit is contained in:
Eric Brown 2018-03-05 13:20:41 -06:00
parent d8151c03df
commit 930ccb6b7b

View File

@ -130,6 +130,12 @@ static void wf_Bitmap_Free(rdpContext* context, rdpBitmap* bitmap)
SelectObject(wf_bitmap->hdc, wf_bitmap->org_bitmap);
DeleteObject(wf_bitmap->bitmap);
DeleteDC(wf_bitmap->hdc);
if (wf_bitmap->_bitmap.data)
{
_aligned_free(wf_bitmap->_bitmap.data);
wf_bitmap->_bitmap.data = NULL;
}
}
}