diff options
| author | Richard M. Stallman | 1996-04-25 03:36:01 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-04-25 03:36:01 +0000 |
| commit | e74c43500e257f0bea26b5edd17bcf8d5fb85a62 (patch) | |
| tree | e7491f6bd70bd0e661984f379d7559543c7af392 /src | |
| parent | 6b091ffc22199ff99fa46c7ae9db8932c5098c8b (diff) | |
| download | emacs-e74c43500e257f0bea26b5edd17bcf8d5fb85a62.tar.gz emacs-e74c43500e257f0bea26b5edd17bcf8d5fb85a62.zip | |
(Fx_list_fonts) [BROKEN_XLISTFONTSWITHINFO]:
Free the font, and the fontinfo too if we don't want it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index 36d164a45c8..a141c694767 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3480,6 +3480,12 @@ even if they match PATTERN and FACE.") | |||
| 3480 | UNBLOCK_INPUT; | 3480 | UNBLOCK_INPUT; |
| 3481 | 3481 | ||
| 3482 | keeper = thisinfo && same_size_fonts (thisinfo, size_ref); | 3482 | keeper = thisinfo && same_size_fonts (thisinfo, size_ref); |
| 3483 | BLOCK_INPUT; | ||
| 3484 | if (thisinfo && ! keeper) | ||
| 3485 | XFreeFont (FRAME_X_DISPLAY (f), thisinfo); | ||
| 3486 | else if (thisinfo) | ||
| 3487 | XFreeFontInfo (NULL, thisinfo, 1); | ||
| 3488 | UNBLOCK_INPUT; | ||
| 3483 | #else | 3489 | #else |
| 3484 | keeper = same_size_fonts (&info[i], size_ref); | 3490 | keeper = same_size_fonts (&info[i], size_ref); |
| 3485 | #endif | 3491 | #endif |