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

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2016-05-30 22:52:50 +03:00 committed by Alexandre Julliard
parent 59ee884bdf
commit b18ecadef7
1 changed files with 1 additions and 0 deletions

View File

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