Fix memory leak of Decompress buffer in client wf_Bitmap_Free
@@ -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;
+ }
}
}
