diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2006-07-09 10:56:42 +0000 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2006-07-09 10:56:42 +0000 |
commit | 6d42cb9598544d42ddd85ffea6ee25d3a39ad4a1 (patch) | |
tree | 9f7e7ec5713b3e4738b8063f76b8882cef27bdbd /src/xftfont.c | |
parent | 83c64f752c39400331a1c7ddddfa535a1ba7e8d1 (diff) | |
download | emacs-6d42cb9598544d42ddd85ffea6ee25d3a39ad4a1.tar.gz |
* xftfont.c (xftfont_done_face): Call XftDrawDestroy only if xftface_info
is non-NULL.
Diffstat (limited to 'src/xftfont.c')
-rw-r--r-- | src/xftfont.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/xftfont.c b/src/xftfont.c index d896e6967e9..bd310cb68b8 100644 --- a/src/xftfont.c +++ b/src/xftfont.c @@ -406,10 +406,13 @@ xftfont_done_face (f, face) #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; } |