gdi32: Fix a GdiFont leak
Dmitry Timoshkov
dmitry at codeweavers.com
Thu Jan 10 07:18:36 CST 2008
Hello,
Changelog:
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;
--
1.5.3.8
More information about the wine-patches
mailing list