gdiplus: Fix font leak.
This commit is contained in:
parent
31544a73da
commit
2e31f7a80a
|
@ -971,6 +971,7 @@ GpStatus WINGDIPAPI GdipAddPathString(GpPath* path, GDIPCONST WCHAR* string, INT
|
|||
return status;
|
||||
|
||||
get_log_fontW(font, NULL, &lfw);
|
||||
GdipDeleteFont(font);
|
||||
hfont = CreateFontIndirectW(&lfw);
|
||||
if (!hfont)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue