Commit e74c4350 authored by Richard M. Stallman's avatar Richard M. Stallman

(Fx_list_fonts) [BROKEN_XLISTFONTSWITHINFO]:

Free the font, and the fontinfo too if we don't want it.
parent 6b091ffc
......@@ -3480,6 +3480,12 @@ even if they match PATTERN and FACE.")
UNBLOCK_INPUT;
keeper = thisinfo && same_size_fonts (thisinfo, size_ref);
BLOCK_INPUT;
if (thisinfo && ! keeper)
XFreeFont (FRAME_X_DISPLAY (f), thisinfo);
else if (thisinfo)
XFreeFontInfo (NULL, thisinfo, 1);
UNBLOCK_INPUT;
#else
keeper = same_size_fonts (&info[i], size_ref);
#endif
......
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