summaryrefslogtreecommitdiff
path: root/src/alloc.c
diff options
context:
space:
mode:
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))
{