]> git.eshelyaron.com Git - emacs.git/commit
Avoid segfaults due to image cache being cleared during redisplay
authorEli Zaretskii <eliz@gnu.org>
Mon, 4 Feb 2019 17:42:33 +0000 (19:42 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 4 Feb 2019 17:42:33 +0000 (19:42 +0200)
commitef17247fe9cab2d59e470daad24314c868248b0a
treebdbc2082ba69afdfa637d7dbe44e9b9803b21a0d
parentf33a5dc9475ae43bb2477e648befd6a893d216f1
Avoid segfaults due to image cache being cleared during redisplay

* src/xdisp.c (redisplay_internal): Set the
inhibit_clear_image_cache flag of a frame while its windows
are being redisplayed, and reset the flag after the call top
update_frame returns.
* src/image.c (clear_image_cache): Do nothing if the frame's
inhibit_clear_image_cache flag is set.  (Bug#34256)
* src/frame.h (struct frame): New flag inhibit_clear_image_cache.
src/frame.h
src/image.c
src/xdisp.c