aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-07-17 22:25:39 +0000
committerKarl Heuer1995-07-17 22:25:39 +0000
commita03a26dbdf9fd68a5b0be755171c05283dfea5e7 (patch)
treeac026342be39beb3625e27c84c3bb43ed61fc835 /src
parent5be02dffe84c76883514514a2cdddfffd5b0992f (diff)
downloademacs-a03a26dbdf9fd68a5b0be755171c05283dfea5e7.tar.gz
emacs-a03a26dbdf9fd68a5b0be755171c05283dfea5e7.zip
(Fx_list_fonts): Don't free thisinfo if it is 0.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c3
1 files changed, 2 insertions, 1 deletions
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.")
3239 if (thisinfo && same_size_fonts (thisinfo, size_ref)) 3239 if (thisinfo && same_size_fonts (thisinfo, size_ref))
3240 newlist = Fcons (XCONS (tem)->car, newlist); 3240 newlist = Fcons (XCONS (tem)->car, newlist);
3241 3241
3242 XFreeFont (FRAME_X_DISPLAY (f), thisinfo); 3242 if (thisinfo != 0)
3243 XFreeFont (FRAME_X_DISPLAY (f), thisinfo);
3243 } 3244 }
3244 3245
3245 UNBLOCK_INPUT; 3246 UNBLOCK_INPUT;