diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index c7b8535c480..72aa0826de9 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -13437,8 +13437,13 @@ x_list_fonts (f, pattern, size, maxnames) | |||
| 13437 | } | 13437 | } |
| 13438 | } | 13438 | } |
| 13439 | } | 13439 | } |
| 13440 | |||
| 13440 | if (!try_XLoadQueryFont) | 13441 | if (!try_XLoadQueryFont) |
| 13441 | XFreeFontNames (names); | 13442 | { |
| 13443 | BLOCK_INPUT; | ||
| 13444 | XFreeFontNames (names); | ||
| 13445 | UNBLOCK_INPUT; | ||
| 13446 | } | ||
| 13442 | } | 13447 | } |
| 13443 | 13448 | ||
| 13444 | /* Now store the result in the cache. */ | 13449 | /* Now store the result in the cache. */ |
| @@ -13490,7 +13495,9 @@ x_list_fonts (f, pattern, size, maxnames) | |||
| 13490 | = (thisinfo->min_bounds.width == 0 | 13495 | = (thisinfo->min_bounds.width == 0 |
| 13491 | ? make_number (0) | 13496 | ? make_number (0) |
| 13492 | : make_number (thisinfo->max_bounds.width)); | 13497 | : make_number (thisinfo->max_bounds.width)); |
| 13498 | BLOCK_INPUT; | ||
| 13493 | XFreeFont (dpy, thisinfo); | 13499 | XFreeFont (dpy, thisinfo); |
| 13500 | UNBLOCK_INPUT; | ||
| 13494 | } | 13501 | } |
| 13495 | else | 13502 | else |
| 13496 | /* For unknown reason, the previous call of XListFont had | 13503 | /* For unknown reason, the previous call of XListFont had |