aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorStefan Monnier2010-11-09 15:07:10 -0500
committerStefan Monnier2010-11-09 15:07:10 -0500
commitd607b96bc2824116a8fe0e5840ce49da7ce4514f (patch)
tree229a11bba88b67e8961db4d10aa8b3725f3a4873 /src/image.c
parent27410d0ac3406a341cc90ada064047a7f1ea5209 (diff)
parentc00980655bc15ca019fd6c559c69601be18f2407 (diff)
downloademacs-d607b96bc2824116a8fe0e5840ce49da7ce4514f.tar.gz
emacs-d607b96bc2824116a8fe0e5840ce49da7ce4514f.zip
Merge from emacs-23
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/image.c b/src/image.c
index 083d0720c15..828c2d319be 100644
--- a/src/image.c
+++ b/src/image.c
@@ -1049,10 +1049,6 @@ free_image (struct frame *f, struct image *img)
1049 /* Free resources, then free IMG. */ 1049 /* Free resources, then free IMG. */
1050 img->type->free (f, img); 1050 img->type->free (f, img);
1051 xfree (img); 1051 xfree (img);
1052
1053 /* As display glyphs may still be referring to the image ID, we
1054 must garbage the frame (Bug#6426). */
1055 SET_FRAME_GARBAGED (f);
1056 } 1052 }
1057} 1053}
1058 1054
@@ -1471,7 +1467,12 @@ uncache_image (struct frame *f, Lisp_Object spec)
1471{ 1467{
1472 struct image *img = search_image_cache (f, spec, sxhash (spec, 0)); 1468 struct image *img = search_image_cache (f, spec, sxhash (spec, 0));
1473 if (img) 1469 if (img)
1474 free_image (f, img); 1470 {
1471 free_image (f, img);
1472 /* As display glyphs may still be referring to the image ID, we
1473 must garbage the frame (Bug#6426). */
1474 SET_FRAME_GARBAGED (f);
1475 }
1475} 1476}
1476 1477
1477 1478