]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_list_fonts): Make sure XFreeFont is called
authorGerd Moellmann <gerd@gnu.org>
Mon, 2 Jul 2001 09:21:08 +0000 (09:21 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 2 Jul 2001 09:21:08 +0000 (09:21 +0000)
with input blocked.

src/xterm.c

index c7b8535c4808443c3ea891552fd8cb802328e56a..72aa0826de921ac7fb035a8b2dd4bd2de3af22d1 100644 (file)
@@ -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