]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_list_fonts): Fix previous change.
authorRichard M. Stallman <rms@gnu.org>
Sat, 8 Aug 1998 02:39:50 +0000 (02:39 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 8 Aug 1998 02:39:50 +0000 (02:39 +0000)
src/xterm.c

index 5ae37327d7ff0797e9b0eab03f54668758dd142a..18a6619abba37e138cb34d893e05984ea416b422 100644 (file)
@@ -6497,7 +6497,9 @@ x_list_fonts (f, pattern, size, maxnames)
            }
          else
            try_XLoadQueryFont = 0;
-         XFreeFont (font);
+
+         if (font)
+           XFreeFont (dpy, font);
        }
 
       if (!try_XLoadQueryFont)