gdi32: Fix a GdiFont leak.

This commit is contained in:
Dmitry Timoshkov 2008-01-10 21:18:36 +08:00 committed by Alexandre Julliard
parent d43f025b8c
commit f542511209
1 changed files with 3 additions and 1 deletions

View File

@ -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;