if (xbitmap->image)
{
+ xbitmap->image->data = NULL;
XDestroyImage(xbitmap->image);
xbitmap->image = NULL;
}
xf_unlock_x11(xfc, FALSE);
+ _aligned_free(bitmap->data);
+ free(xbitmap);
}
static BOOL xf_Bitmap_Paint(rdpContext* context, rdpBitmap* bitmap)
void Bitmap_Free(rdpContext* context, rdpBitmap* bitmap)
{
if (bitmap)
- {
bitmap->Free(context, bitmap);
-
- if (bitmap->data)
- _aligned_free(bitmap->data);
-
- free(bitmap);
- }
}
BOOL Bitmap_SetRectangle(rdpBitmap* bitmap,
gdi_SelectObject(gdi_bitmap->hdc, (HGDIOBJECT) gdi_bitmap->org_bitmap);
gdi_DeleteObject((HGDIOBJECT) gdi_bitmap->bitmap);
gdi_DeleteDC(gdi_bitmap->hdc);
+
+ _aligned_free(bitmap->data);
}
+
+ free(bitmap);
}
static BOOL gdi_Bitmap_Paint(rdpContext* context, rdpBitmap* bitmap)