changeset 22943:5493321d4526

(x_list_fonts): Fix previous change.
author Richard M. Stallman <rms@gnu.org>
date Sat, 08 Aug 1998 02:39:50 +0000
parents 39f23890e482
children c2bb9ab28588
files src/xterm.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sat Aug 08 02:37:58 1998 +0000
+++ b/src/xterm.c	Sat Aug 08 02:39:50 1998 +0000
@@ -6497,7 +6497,9 @@
 	    }
 	  else
 	    try_XLoadQueryFont = 0;
-	  XFreeFont (font);
+
+	  if (font)
+	    XFreeFont (dpy, font);
 	}
 
       if (!try_XLoadQueryFont)