diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-07-14 17:15:23 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-07-14 18:59:09 +0200 |
commit | 95966b28fb1a3f541a4f988a74005d45554536dd (patch) | |
tree | 0b9b61ad944d19866a9dfe6743dd3fc2d6ef984b /src/alloc.c | |
parent | f2e131f1aedb8bd5c8a9208156f7e397e605b07c (diff) | |
download | emacs-95966b28fb1a3f541a4f988a74005d45554536dd.tar.gz |
Prune the animation cache from gc
* src/alloc.c (garbage_collect): Prune animation cache
(bug#56546).
Diffstat (limited to 'src/alloc.c')
-rw-r--r-- | src/alloc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c index f115a3cebaa..69fee0d6002 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -6266,6 +6266,9 @@ garbage_collect (void) /* GC is complete: now we can run our finalizer callbacks. */ run_finalizers (&doomed_finalizers); + /* Eject unused image cache entries. */ + image_prune_animation_caches (false); + if (!NILP (Vpost_gc_hook)) { specpdl_ref gc_count = inhibit_garbage_collection (); |