diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2014-03-03 12:27:58 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2014-03-03 12:27:58 +0400 |
commit | 19dae293f9fecea07c91440f0a33076c54d39b49 (patch) | |
tree | e2ef81c52b8c2dc8ffad510110f3bc71b2b3524f /lisp/emacs-lisp/warnings.el | |
parent | 8c1c761122b7472617c82fd00c949df52260c903 (diff) | |
download | emacs-19dae293f9fecea07c91440f0a33076c54d39b49.tar.gz |
Avoid crashes when X fonts are erroneously freed on reused X
'Display *' connection data (Bug#16069). Note that X font
resources still may be leaked, but currently there is no way
to completely avoid it.
* xterm.h (struct x_display_info): New member x_id. Add comments.
* xterm.c (x_display_id): New variable.
(x_term_init): Assign identifier to each opened X connection.
* xfont.c (struct xfont): New member x_display_id.
(xfont_open): Initialize it with frame's display id.
(xfont_close): Check whether font's display id matches the one
recorded for the given display. Adjust comment.
* xftfont.c (struct xftfont_info):
(xftfont_open, xftfont_close): Exactly as above with xfont stuff.
Diffstat (limited to 'lisp/emacs-lisp/warnings.el')
0 files changed, 0 insertions, 0 deletions