aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorGerd Moellmann2001-07-02 09:21:08 +0000
committerGerd Moellmann2001-07-02 09:21:08 +0000
commite38f41369fafe4cced5258ca3a8e481d28f70ac8 (patch)
treee1e5b4b3040aefc302ff5ba44771a1e4c4fac94e /src/xterm.c
parent5f5e1272ddb536541de10e7b3ece9e8aef3d8e4b (diff)
downloademacs-e38f41369fafe4cced5258ca3a8e481d28f70ac8.tar.gz
emacs-e38f41369fafe4cced5258ca3a8e481d28f70ac8.zip
(x_list_fonts): Make sure XFreeFont is called
with input blocked.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c9
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