gdi32: Fix a GdiFont leak.
This commit is contained in:
parent
d43f025b8c
commit
f542511209
dlls/gdi32
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue