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);