+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):
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
}