Huw Davies : gdiplus: Fix a memory leak.
Alexandre Julliard
julliard at winehq.org
Mon Dec 14 09:51:11 CST 2009
Module: wine
Branch: master
Commit: 68bacfb8d52b54ee6048b459e9ed3e2265cae313
URL: http://source.winehq.org/git/wine.git/?a=commit;h=68bacfb8d52b54ee6048b459e9ed3e2265cae313
Author: Huw Davies <huw at codeweavers.com>
Date: Sat Dec 12 16:49:15 2009 +0000
gdiplus: Fix a memory leak.
Found by Valgrind.
---
dlls/gdiplus/graphics.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c
index 80ef463..b1092b7 100644
--- a/dlls/gdiplus/graphics.c
+++ b/dlls/gdiplus/graphics.c
@@ -4161,6 +4161,7 @@ GpStatus WINGDIPAPI GdipGetClip(GpGraphics *graphics, GpRegion *region)
/* free everything except root node and header */
delete_element(®ion->node);
memcpy(region, clip, sizeof(GpRegion));
+ GdipFree(clip);
return Ok;
}
More information about the wine-cvs
mailing list