diff --git a/client/Windows/wf_graphics.c b/client/Windows/wf_graphics.c index e3e43c6d4..13489a496 100644 --- a/client/Windows/wf_graphics.c +++ b/client/Windows/wf_graphics.c @@ -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; + } } }