changeset 12546:f4fb791df099

(Fx_list_fonts): Don't free thisinfo if it is 0.
author Karl Heuer <kwzh@gnu.org>
date Mon, 17 Jul 1995 22:25:39 +0000
parents ccc20d466150
children 63cdecbd7af4
files src/xfns.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Mon Jul 17 22:24:37 1995 +0000
+++ b/src/xfns.c	Mon Jul 17 22:25:39 1995 +0000
@@ -3239,7 +3239,8 @@
           if (thisinfo && same_size_fonts (thisinfo, size_ref))
 	    newlist = Fcons (XCONS (tem)->car, newlist);
 
-	  XFreeFont (FRAME_X_DISPLAY (f), thisinfo);
+	  if (thisinfo != 0)
+	    XFreeFont (FRAME_X_DISPLAY (f), thisinfo);
         }
 
       UNBLOCK_INPUT;