]> git.eshelyaron.com Git - emacs.git/commit
Prune animation cache when images are no longer reachable
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 14 Jul 2022 16:58:12 +0000 (18:58 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 14 Jul 2022 16:59:09 +0000 (18:59 +0200)
commit564f6c171eeaef4dea4b4fc2524c0b082dfbb531
tree014595873d94947428e4a1a604f0d7602d5d51ea
parent4c542747bd40f3098a20aafe001889607f044188
Prune animation cache when images are no longer reachable

* lisp/image.el (image-animate-timeout): Eject cached animated
images that are no longer reachable (bug#56546).

* src/image.c (Fclear_image_cache): Allow specifying a cached
animated image to eject.
(gif_load, webp_load): Adjust what to use as the caching key --
the identity of the list itself is apparently changed by some
callers.
lisp/image.el
src/image.c