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:
parent
59ee884bdf
commit
b18ecadef7
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue