mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-03 11:33:37 +00:00
* font.c (font_close_object): Check for live frame (Bug#16128).
This commit is contained in:
parent
84c73ba099
commit
b6c888cc7a
@ -1,3 +1,7 @@
|
||||
2013-12-13 Dmitry Antipov <dmantipov@yandex.ru>
|
||||
|
||||
* font.c (font_close_object): Check for live frame (Bug#16128).
|
||||
|
||||
2013-12-13 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* gnutls.c, gnutls.h (emacs_gnutls_record_check_pending):
|
||||
|
@ -2898,8 +2898,12 @@ font_close_object (Lisp_Object font_object)
|
||||
font->driver->close (font);
|
||||
#ifdef HAVE_WINDOW_SYSTEM
|
||||
eassert (font->frame);
|
||||
eassert (FRAME_DISPLAY_INFO (font->frame)->n_fonts);
|
||||
FRAME_DISPLAY_INFO (font->frame)->n_fonts--;
|
||||
/* If the frame is gone, we can't do anything (Bug#16128). */
|
||||
if (FRAME_LIVE_P (font->frame))
|
||||
{
|
||||
eassert (FRAME_DISPLAY_INFO (font->frame)->n_fonts);
|
||||
FRAME_DISPLAY_INFO (font->frame)->n_fonts--;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user