Vincent Povirk : gdiplus: Free the attached HBITMAP when destroying Bitmap objects.

Alexandre Julliard julliard at winehq.org
Thu Feb 25 11:36:22 CST 2010


Module: wine
Branch: master
Commit: f62560f76c532dcbcee158434c3649ad08342bf3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f62560f76c532dcbcee158434c3649ad08342bf3

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Wed Feb 24 17:01:39 2010 -0600

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 1d48a0b..bd480c2 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);




More information about the wine-cvs mailing list