gdiplus: Free the attached HBITMAP when destroying Bitmap objects.
This commit is contained in:
parent
bb58537e95
commit
f62560f76c
|
@ -1837,6 +1837,7 @@ GpStatus WINGDIPAPI GdipDisposeImage(GpImage *image)
|
|||
{
|
||||
GdipFree(((GpBitmap*)image)->bitmapbits);
|
||||
DeleteDC(((GpBitmap*)image)->hdc);
|
||||
DeleteObject(((GpBitmap*)image)->hbitmap);
|
||||
}
|
||||
GdipFree(image->palette_entries);
|
||||
GdipFree(image);
|
||||
|
|
Loading…
Reference in New Issue