Dmitry Timoshkov : gdiplus: Fix font leak.

Alexandre Julliard julliard at winehq.org
Mon Aug 27 14:35:04 CDT 2012


Module: wine
Branch: master
Commit: 2e31f7a80a506ec4f0641aa0c228fb2a3a831093
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2e31f7a80a506ec4f0641aa0c228fb2a3a831093

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Mon Aug 27 14:11:47 2012 +0900

gdiplus: Fix font leak.

---

 dlls/gdiplus/graphicspath.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index 8533902..80d9244 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)
     {




More information about the wine-cvs mailing list