From 52ab9bb27b2d91a4050762bbe34f05db3018f62f Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sat, 19 Jun 2010 15:43:47 -0400 Subject: [PATCH] * image.c (free_image): Mark frame as garbaged (Bug#6426). --- src/ChangeLog | 2 ++ src/image.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 680f364a1f..cf6f8427b2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2010-06-19 Chong Yidong + * image.c (free_image): Mark frame as garbaged (Bug#6426). + * keymap.c (Fdefine_key): Doc fix (Bug#6460). 2010-06-15 Glenn Morris diff --git a/src/image.c b/src/image.c index 1265b900c6..e7db3a7df1 100644 --- a/src/image.c +++ b/src/image.c @@ -1094,6 +1094,10 @@ free_image (f, img) /* Free resources, then free IMG. */ img->type->free (f, img); xfree (img); + + /* As display glyphs may still be referring to the image ID, we + must garbage the frame (Bug#6426). */ + SET_FRAME_GARBAGED (f); } } -- 2.20.1