diff options
| author | Lars Ingebrigtsen | 2022-07-14 17:15:23 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2022-07-14 18:59:09 +0200 |
| commit | 95966b28fb1a3f541a4f988a74005d45554536dd (patch) | |
| tree | 0b9b61ad944d19866a9dfe6743dd3fc2d6ef984b /src/alloc.c | |
| parent | f2e131f1aedb8bd5c8a9208156f7e397e605b07c (diff) | |
| download | emacs-95966b28fb1a3f541a4f988a74005d45554536dd.tar.gz emacs-95966b28fb1a3f541a4f988a74005d45554536dd.zip | |
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) | |||
| 6266 | /* GC is complete: now we can run our finalizer callbacks. */ | 6266 | /* GC is complete: now we can run our finalizer callbacks. */ |
| 6267 | run_finalizers (&doomed_finalizers); | 6267 | run_finalizers (&doomed_finalizers); |
| 6268 | 6268 | ||
| 6269 | /* Eject unused image cache entries. */ | ||
| 6270 | image_prune_animation_caches (false); | ||
| 6271 | |||
| 6269 | if (!NILP (Vpost_gc_hook)) | 6272 | if (!NILP (Vpost_gc_hook)) |
| 6270 | { | 6273 | { |
| 6271 | specpdl_ref gc_count = inhibit_garbage_collection (); | 6274 | specpdl_ref gc_count = inhibit_garbage_collection (); |