From 70742d5e5a252e7d14fd4e1d6c8369ea0ddc1393 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Tue, 15 Dec 2009 11:32:58 +0000 Subject: [PATCH] gdiplus: Fix a memory leak in the tests. Found by Valgrind. --- dlls/gdiplus/tests/font.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c index 3134ffcb39a..7b95d4c55ab 100644 --- a/dlls/gdiplus/tests/font.c +++ b/dlls/gdiplus/tests/font.c @@ -193,6 +193,7 @@ todo_wine { stat = GdipCreateFontFamilyFromName (MSSansSerif, NULL, &family); expect (FontFamilyNotFound, stat); + if(stat == Ok) GdipDeleteFontFamily(family); } stat = GdipCreateFontFamilyFromName (arial, NULL, &family);