From a03a26dbdf9fd68a5b0be755171c05283dfea5e7 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Mon, 17 Jul 1995 22:25:39 +0000 Subject: [PATCH] (Fx_list_fonts): Don't free thisinfo if it is 0. --- src/xfns.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xfns.c b/src/xfns.c index 1f399f5a9c4..3ae6c7c2c60 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -3239,7 +3239,8 @@ even if they match PATTERN and FACE.") 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; -- 2.39.2