gdiplus: Fix font leak.

This commit is contained in:
Dmitry Timoshkov 2012-08-27 14:11:47 +09:00 committed by Alexandre Julliard
parent 31544a73da
commit 2e31f7a80a
1 changed files with 1 additions and 0 deletions

View File

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