Commit 2e31f7a8 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdiplus: Fix font leak.

parent 31544a73
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment