Nikolay Sivov : gdiplus/tests: Fix a font leak (Valgrind).

Alexandre Julliard julliard at winehq.org
Wed Jun 1 10:45:45 CDT 2016


Module: wine
Branch: master
Commit: b18ecadef70725a9b70807554a0b785a202bb644
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b18ecadef70725a9b70807554a0b785a202bb644

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Mon May 30 22:52:50 2016 +0300

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

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 39b539b..1b442cc 100644
--- a/dlls/gdiplus/tests/font.c
+++ b/dlls/gdiplus/tests/font.c
@@ -781,6 +781,7 @@ static void test_font_substitution(void)
     expect(Ok, status);
     strcpy(fallback_font,lf.lfFaceName);
     trace("fallback font %s\n", fallback_font);
+    GdipDeleteFont(font);
 
     lstrcpyA(lf.lfFaceName, "ThisFontShouldNotExist");
     status = GdipCreateFontFromLogfontA(hdc, &lf, &font);




More information about the wine-cvs mailing list