Commit f5425112 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdi32: Fix a GdiFont leak.

parent d43f025b
...@@ -3262,7 +3262,7 @@ static void GetEnumStructs(Face *face, LPENUMLOGFONTEXW pelf, ...@@ -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, ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment