gdi32: Fix a GdiFont leak.
This commit is contained in:
parent
d43f025b8c
commit
f542511209
|
@ -3262,7 +3262,7 @@ static void GetEnumStructs(Face *face, LPENUMLOGFONTEXW pelf,
|
||||||
OUTLINETEXTMETRICW *potm = NULL;
|
OUTLINETEXTMETRICW *potm = NULL;
|
||||||
UINT size;
|
UINT size;
|
||||||
TEXTMETRICW tm, *ptm;
|
TEXTMETRICW tm, *ptm;
|
||||||
GdiFont *font = alloc_font();
|
GdiFont *font;
|
||||||
LONG width, height;
|
LONG width, height;
|
||||||
|
|
||||||
if (face->cache_valid)
|
if (face->cache_valid)
|
||||||
|
@ -3274,6 +3274,8 @@ static void GetEnumStructs(Face *face, LPENUMLOGFONTEXW pelf,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
font = alloc_font();
|
||||||
|
|
||||||
if(face->scalable) {
|
if(face->scalable) {
|
||||||
height = 100;
|
height = 100;
|
||||||
width = 0;
|
width = 0;
|
||||||
|
|
Loading…
Reference in New Issue