summaryrefslogtreecommitdiff
path: root/src/alloc.c
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-07-14 20:07:37 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-07-14 20:07:37 +0200
commit90f8c8400f88939208ae372287100caa46a5d31c (patch)
tree2712d383e1455f75c22b12f1db6a6833a9a4c58e /src/alloc.c
parent0ce216b38fbf10ba94955d7a9789b16c95130a9a (diff)
downloademacs-90f8c8400f88939208ae372287100caa46a5d31c.tar.gz
Fix --without-x build after previous image cache changes
* src/alloc.c (garbage_collect): Fix --without-all --without-x build.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 69fee0d6002..6e166d00d5b 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -6266,8 +6266,10 @@ garbage_collect (void)
/* GC is complete: now we can run our finalizer callbacks. */
run_finalizers (&doomed_finalizers);
+#ifdef HAVE_WINDOW_SYSTEM
/* Eject unused image cache entries. */
image_prune_animation_caches (false);
+#endif
if (!NILP (Vpost_gc_hook))
{