diff options
Diffstat (limited to 'src')
| -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) | |||
| 406 | #endif | 406 | #endif |
| 407 | 407 | ||
| 408 | xftface_info = (struct xftface_info *) face->extra; | 408 | xftface_info = (struct xftface_info *) face->extra; |
| 409 | BLOCK_INPUT; | 409 | if (xftface_info) |
| 410 | XftDrawDestroy (xftface_info->xft_draw); | 410 | { |
| 411 | UNBLOCK_INPUT; | 411 | BLOCK_INPUT; |
| 412 | free (xftface_info); | 412 | XftDrawDestroy (xftface_info->xft_draw); |
| 413 | UNBLOCK_INPUT; | ||
| 414 | free (xftface_info); | ||
| 415 | } | ||
| 413 | face->extra = NULL; | 416 | face->extra = NULL; |
| 414 | } | 417 | } |
| 415 | 418 | ||