From a083fd237dddb107a3a08c280646ba0cd12ed8dd Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 8 Aug 1998 02:39:50 +0000 Subject: [PATCH] (x_list_fonts): Fix previous change. --- src/xterm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xterm.c b/src/xterm.c index 5ae37327d7f..18a6619abba 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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) -- 2.39.2