Fix --without-x build after previous image cache changes

* src/alloc.c (garbage_collect): Fix --without-all --without-x build.
This commit is contained in:
Lars Ingebrigtsen 2022-07-14 20:07:37 +02:00
parent 0ce216b38f
commit 90f8c8400f

View file

@ -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))
{