diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/alloc.c b/src/alloc.c index 9304e4e42bb..666f77bfce1 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -7055,6 +7055,13 @@ mark_frame (struct Lisp_Vector *ptr) | |||
| 7055 | for (tem = f->conversion.actions; tem; tem = tem->next) | 7055 | for (tem = f->conversion.actions; tem; tem = tem->next) |
| 7056 | mark_object (tem->data); | 7056 | mark_object (tem->data); |
| 7057 | #endif | 7057 | #endif |
| 7058 | |||
| 7059 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 7060 | /* Mark this frame's image cache, though it might be common to several | ||
| 7061 | frames with the same font size. */ | ||
| 7062 | if (FRAME_IMAGE_CACHE (f)) | ||
| 7063 | mark_image_cache (FRAME_IMAGE_CACHE (f)); | ||
| 7064 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 7058 | } | 7065 | } |
| 7059 | 7066 | ||
| 7060 | static void | 7067 | static void |
| @@ -7515,12 +7522,6 @@ mark_terminals (void) | |||
| 7515 | for (t = terminal_list; t; t = t->next_terminal) | 7522 | for (t = terminal_list; t; t = t->next_terminal) |
| 7516 | { | 7523 | { |
| 7517 | eassert (t->name != NULL); | 7524 | eassert (t->name != NULL); |
| 7518 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 7519 | /* If a terminal object is reachable from a stacpro'ed object, | ||
| 7520 | it might have been marked already. Make sure the image cache | ||
| 7521 | gets marked. */ | ||
| 7522 | mark_image_cache (t->image_cache); | ||
| 7523 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 7524 | if (!vectorlike_marked_p (&t->header)) | 7525 | if (!vectorlike_marked_p (&t->header)) |
| 7525 | mark_vectorlike (&t->header); | 7526 | mark_vectorlike (&t->header); |
| 7526 | } | 7527 | } |