aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2014-01-21 18:08:31 +0200
committerEli Zaretskii2014-01-21 18:08:31 +0200
commitf7551c6c33394b4cdfb9da378aa2ea1cb2534a4e (patch)
tree2602f8b00fbac068a5ad455efeb3b8e809cbcc06
parent63389c254e73b53a253676ff45e8b089e45c1f31 (diff)
downloademacs-f7551c6c33394b4cdfb9da378aa2ea1cb2534a4e.tar.gz
emacs-f7551c6c33394b4cdfb9da378aa2ea1cb2534a4e.zip
Fix bug #16509 with segfault in an assertion when exiting due to missing font.
src/w32fns.c (unwind_create_frame): Avoid crashing inside assertion when the image cache is not yet allocated.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/w32fns.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 99a3e7e7299..eb05786e3fa 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12014-01-21 Eli Zaretskii <eliz@gnu.org>
2
3 * w32fns.c (unwind_create_frame): Avoid crashing inside assertion
4 when the image cache is not yet allocated. (Bug#16509)
5
12014-01-21 Dmitry Antipov <dmantipov@yandex.ru> 62014-01-21 Dmitry Antipov <dmantipov@yandex.ru>
2 7
3 * buffer.c (Fkill_buffer): When killing an indirect buffer, 8 * buffer.c (Fkill_buffer): When killing an indirect buffer,
diff --git a/src/w32fns.c b/src/w32fns.c
index d6f3fe7a3eb..0d965647599 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -4250,7 +4250,9 @@ unwind_create_frame (Lisp_Object frame)
4250#ifdef GLYPH_DEBUG 4250#ifdef GLYPH_DEBUG
4251 /* Check that reference counts are indeed correct. */ 4251 /* Check that reference counts are indeed correct. */
4252 eassert (dpyinfo->reference_count == dpyinfo_refcount); 4252 eassert (dpyinfo->reference_count == dpyinfo_refcount);
4253 eassert (dpyinfo->terminal->image_cache->refcount == image_cache_refcount); 4253 eassert ((dpyinfo->terminal->image_cache == NULL
4254 && image_cache_refcount == 0)
4255 || dpyinfo->terminal->image_cache->refcount == image_cache_refcount);
4254#endif 4256#endif
4255 return Qt; 4257 return Qt;
4256 } 4258 }