From 2e31f7a80a506ec4f0641aa0c228fb2a3a831093 Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Mon, 27 Aug 2012 14:11:47 +0900 Subject: [PATCH] gdiplus: Fix font leak. --- dlls/gdiplus/graphicspath.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c index 8533902253d..80d9244d44e 100644 --- a/dlls/gdiplus/graphicspath.c +++ b/dlls/gdiplus/graphicspath.c @@ -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) {