changeset 38246:b93fb0eb254d

(x_list_fonts): Make sure XFreeFont is called with input blocked.
author Gerd Moellmann <gerd@gnu.org>
date Mon, 02 Jul 2001 09:21:08 +0000
parents 9ada58a02f7e
children 2e9de5c87fc2
files src/xterm.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sat Jun 30 15:57:31 2001 +0000
+++ b/src/xterm.c	Mon Jul 02 09:21:08 2001 +0000
@@ -13437,8 +13437,13 @@
 		    }
 		}
 	    }
+	  
 	  if (!try_XLoadQueryFont)
-	    XFreeFontNames (names);
+	    {
+	      BLOCK_INPUT;
+	      XFreeFontNames (names);
+	      UNBLOCK_INPUT;
+	    }
 	}
 
       /* Now store the result in the cache.  */
@@ -13490,7 +13495,9 @@
 		    = (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