Dmitry Timoshkov : gdi32: Fix a GdiFont leak.
Alexandre Julliard
julliard at winehq.org
Fri Jan 11 07:20:19 CST 2008
Module: wine
Branch: master
Commit: f542511209ae4d642c4cc4b350954e6bc9977f2f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f542511209ae4d642c4cc4b350954e6bc9977f2f
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Thu Jan 10 21:18:36 2008 +0800
gdi32: Fix a GdiFont leak.
---
dlls/gdi32/freetype.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 2de49d4..067d41f 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -3262,7 +3262,7 @@ static void GetEnumStructs(Face *face, LPENUMLOGFONTEXW pelf,
OUTLINETEXTMETRICW *potm = NULL;
UINT size;
TEXTMETRICW tm, *ptm;
- GdiFont *font = alloc_font();
+ GdiFont *font;
LONG width, height;
if (face->cache_valid)
@@ -3274,6 +3274,8 @@ static void GetEnumStructs(Face *face, LPENUMLOGFONTEXW pelf,
return;
}
+ font = alloc_font();
+
if(face->scalable) {
height = 100;
width = 0;
More information about the wine-cvs
mailing list