]> git.eshelyaron.com Git - emacs.git/commitdiff
Prune the animation cache from gc
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 14 Jul 2022 15:15:23 +0000 (17:15 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 14 Jul 2022 16:59:09 +0000 (18:59 +0200)
* src/alloc.c (garbage_collect): Prune animation cache
(bug#56546).

src/alloc.c

index f115a3cebaaa821dc69822b702e5850db1f63bd1..69fee0d6002a8ace4d0f5bd697ce1ccfa2465467 100644 (file)
@@ -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 ();