gdiplus: Valgrind: fix warnings about using uninitialized memory, and leaking memory.
This commit is contained in:
parent
f3b14ac723
commit
7e245060ef
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue