changeset 90527:63b888896eba

* xftfont.c (xftfont_done_face): Call XftDrawDestroy only if xftface_info is non-NULL.
author Jan Djärv <jan.h.d@swipnet.se>
date Sun, 09 Jul 2006 10:56:42 +0000
parents af0b00c37c9b
children ef5f7f9076e5
files src/xftfont.c
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/xftfont.c	Sun Jul 09 10:56:20 2006 +0000
+++ b/src/xftfont.c	Sun Jul 09 10:56:42 2006 +0000
@@ -406,10 +406,13 @@
 #endif
 
   xftface_info = (struct xftface_info *) face->extra;
-  BLOCK_INPUT;
-  XftDrawDestroy (xftface_info->xft_draw);
-  UNBLOCK_INPUT;
-  free (xftface_info);
+  if (xftface_info)
+    {
+      BLOCK_INPUT;
+      XftDrawDestroy (xftface_info->xft_draw);
+      UNBLOCK_INPUT;
+      free (xftface_info);
+    }
   face->extra = NULL;
 }