From 0349620c1ed5ba6399544d15e1f1a6945baecca4 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Wed, 24 Feb 2010 17:01:39 -0600 Subject: [PATCH 2/2] gdiplus: Free the attached HBITMAP when destroying Bitmap objects. --- dlls/gdiplus/image.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 542d945..85497af 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -1862,6 +1862,7 @@ GpStatus WINGDIPAPI GdipDisposeImage(GpImage *image) { GdipFree(((GpBitmap*)image)->bitmapbits); DeleteDC(((GpBitmap*)image)->hdc); + DeleteObject(((GpBitmap*)image)->hbitmap); } GdipFree(image->palette_entries); GdipFree(image); -- 1.6.3.3