From f62560f76c532dcbcee158434c3649ad08342bf3 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Wed, 24 Feb 2010 17:01:39 -0600 Subject: [PATCH] gdiplus: Free the attached HBITMAP when destroying Bitmap objects. --- dlls/gdiplus/image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 1d48a0b7427..bd480c2af00 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -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); -- 2.11.4.GIT