Sven Baars : gdiplus/tests: Fix a memory leak (Valgrind).

Alexandre Julliard julliard at winehq.org
Fri Feb 22 15:22:11 CST 2019


Module: wine
Branch: master
Commit: 6a6376cd830cd855114d3c4b2ded97bd9ac4716d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6a6376cd830cd855114d3c4b2ded97bd9ac4716d

Author: Sven Baars <sven.wine at gmail.com>
Date:   Thu Feb 21 17:18:37 2019 +0100

gdiplus/tests: Fix a memory leak (Valgrind).

Signed-off-by: Sven Baars <sven.wine at gmail.com>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdiplus/tests/image.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c
index 5aec1c2..60591b0 100644
--- a/dlls/gdiplus/tests/image.c
+++ b/dlls/gdiplus/tests/image.c
@@ -5482,6 +5482,7 @@ todo_wine
 
     GdipFree(palette);
     GdipDisposeImage((GpImage *)bitmap);
+    HeapFree(GetProcessHeap(), 0, data);
 }
 
 START_TEST(image)




More information about the wine-cvs mailing list