(x_list_fonts): Make sure XFreeFont is called
with input blocked.
This commit is contained in:
parent
5f5e1272dd
commit
e38f41369f
1 changed files with 8 additions and 1 deletions
|
@ -13437,8 +13437,13 @@ x_list_fonts (f, pattern, size, maxnames)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!try_XLoadQueryFont)
|
||||
XFreeFontNames (names);
|
||||
{
|
||||
BLOCK_INPUT;
|
||||
XFreeFontNames (names);
|
||||
UNBLOCK_INPUT;
|
||||
}
|
||||
}
|
||||
|
||||
/* Now store the result in the cache. */
|
||||
|
@ -13490,7 +13495,9 @@ x_list_fonts (f, pattern, size, maxnames)
|
|||
= (thisinfo->min_bounds.width == 0
|
||||
? make_number (0)
|
||||
: make_number (thisinfo->max_bounds.width));
|
||||
BLOCK_INPUT;
|
||||
XFreeFont (dpy, thisinfo);
|
||||
UNBLOCK_INPUT;
|
||||
}
|
||||
else
|
||||
/* For unknown reason, the previous call of XListFont had
|
||||
|
|
Loading…
Add table
Reference in a new issue