mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
gdiplus: Valgrind: fix warnings about using uninitialized memory, and leaking memory.
This commit is contained in:
parent
f3b14ac723
commit
7e245060ef
2 changed files with 5 additions and 0 deletions
|
@ -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 a new issue