[2/2] gdiplus: Fix memory leak in GdipImageRotateFlip.
Vincent Povirk
madewokherd at gmail.com
Thu Jul 12 09:22:12 CDT 2012
-------------- next part --------------
From 90f1aeb9281144937b89a3b2236bee8615492eba Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Thu, 12 Jul 2012 09:17:56 -0500
Subject: [PATCH 2/2] gdiplus: Fix memory leak in GdipImageRotateFlip.
---
dlls/gdiplus/image.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c
index 233a9eac..9b36280 100644
--- a/dlls/gdiplus/image.c
+++ b/dlls/gdiplus/image.c
@@ -1973,6 +1973,7 @@ static void move_bitmap(GpBitmap *dst, GpBitmap *src, BOOL clobber_palette)
assert(dst->image.type == ImageTypeBitmap);
GdipFree(dst->bitmapbits);
+ GdipFree(dst->own_bits);
DeleteDC(dst->hdc);
DeleteObject(dst->hbitmap);
--
1.7.9.5
More information about the wine-patches
mailing list