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

Sven Baars sven.wine at gmail.com
Thu Feb 21 08:51:18 CST 2019


Signed-off-by: Sven Baars <sven.wine at gmail.com>
---
 dlls/gdiplus/tests/image.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/gdiplus/tests/image.c b/dlls/gdiplus/tests/image.c
index 5aec1c283a..aede76bc2f 100644
--- a/dlls/gdiplus/tests/image.c
+++ b/dlls/gdiplus/tests/image.c
@@ -5389,6 +5389,8 @@ static void test_GdipInitializePalette(void)
     status = GdipCreateBitmapFromScan0(width, height, stride, PixelFormat24bppRGB, data, &bitmap);
     expect(Ok, status);
 
+    HeapFree(GetProcessHeap(), 0, data);
+
     palette = GdipAlloc(sizeof(*palette) + sizeof(ARGB) * 255);
 
     palette->Flags = 0;
-- 
2.17.1




More information about the wine-devel mailing list