Dmitry Timoshkov : gdiplus: Use GdipFree instead of HeapFree to free memory allocated with GdipAlloc.

Alexandre Julliard julliard at winehq.org
Fri Nov 15 13:14:29 CST 2013


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

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Fri Nov 15 18:04:38 2013 +0900

gdiplus: Use GdipFree instead of HeapFree to free memory allocated with GdipAlloc.

---

 dlls/gdiplus/region.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdiplus/region.c b/dlls/gdiplus/region.c
index 759675a..832ce69 100644
--- a/dlls/gdiplus/region.c
+++ b/dlls/gdiplus/region.c
@@ -1297,7 +1297,7 @@ static GpStatus transform_region_element(region_element* element, GpMatrix *matr
             {
                 /* Steal the element from the created region. */
                 memcpy(element, &new_region->node, sizeof(region_element));
-                HeapFree(GetProcessHeap(), 0, new_region);
+                GdipFree(new_region);
             }
             else
                 return stat;




More information about the wine-cvs mailing list