Module: wine Branch: master Commit: 55bf97bba7e8eaff93e736342a268cf6fbbf86fc URL: http://source.winehq.org/git/wine.git/?a=commit;h=55bf97bba7e8eaff93e736342a...
Author: Huw Davies huw@codeweavers.com Date: Sun Dec 6 11:11:44 2009 +0000
gdiplus: Fix a couple of memory leaks.
Found by Valgrind.
---
dlls/gdiplus/region.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/region.c b/dlls/gdiplus/region.c index 197b68a..eab9b8f 100644 --- a/dlls/gdiplus/region.c +++ b/dlls/gdiplus/region.c @@ -249,6 +249,7 @@ GpStatus WINGDIPAPI GdipCombineRegionPath(GpRegion *region, GpPath *path, Combin if(mode == CombineModeReplace){ delete_element(®ion->node); memcpy(region, path_region, sizeof(GpRegion)); + GdipFree(path_region); return Ok; }
@@ -295,6 +296,7 @@ GpStatus WINGDIPAPI GdipCombineRegionRect(GpRegion *region, if(mode == CombineModeReplace){ delete_element(®ion->node); memcpy(region, rect_region, sizeof(GpRegion)); + GdipFree(rect_region); return Ok; }