Module: wine Branch: master Commit: 70742d5e5a252e7d14fd4e1d6c8369ea0ddc1393 URL: http://source.winehq.org/git/wine.git/?a=commit;h=70742d5e5a252e7d14fd4e1d6c...
Author: Huw Davies huw@codeweavers.com Date: Tue Dec 15 11:32:58 2009 +0000
gdiplus: Fix a memory leak in the tests.
Found by Valgrind.
---
dlls/gdiplus/tests/font.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c index 3134ffc..7b95d4c 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);