Commit 7e245060 authored by Adam Petaccia's avatar Adam Petaccia Committed by Alexandre Julliard

gdiplus: Valgrind: fix warnings about using uninitialized memory, and leaking memory.

parent f3b14ac7
......@@ -370,6 +370,9 @@ GpStatus WINGDIPAPI GdipCreateFontFamilyFromName(GDIPCONST WCHAR *name,
hdc = GetDC(0);
lstrcpynW(lfw.lfFaceName, name, sizeof(WCHAR) * LF_FACESIZE);
lfw.lfCharSet = DEFAULT_CHARSET;
lfw.lfEscapement = lfw.lfOrientation = 0;
hFont = CreateFontIndirectW (&lfw);
hfont_old = SelectObject(hdc, hFont);
......
......@@ -76,6 +76,8 @@ static void test_createfont(void)
expect (i, unit);
GdipDeleteFont(font);
}
GdipDeleteFontFamily(fontfamily);
}
static void test_logfont(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment