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

This commit is contained in:
Adam Petaccia 2008-07-03 14:25:41 -04:00 committed by Alexandre Julliard
parent f3b14ac723
commit 7e245060ef
2 changed files with 5 additions and 0 deletions

View file

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

View file

@ -76,6 +76,8 @@ static void test_createfont(void)
expect (i, unit);
GdipDeleteFont(font);
}
GdipDeleteFontFamily(fontfamily);
}
static void test_logfont(void)