diff src/image.c @ 109248:f969130f2bb4

* image.c (free_image): Mark frame as garbaged (Bug#6426).
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 19 Jun 2010 15:43:47 -0400
parents 62f86ca36527
children 60516122d066 0792cbcb42ed
line wrap: on
line diff
--- a/src/image.c	Sat Jun 19 14:06:37 2010 -0400
+++ b/src/image.c	Sat Jun 19 15:43:47 2010 -0400
@@ -1094,6 +1094,10 @@
       /* 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);
     }
 }