diff options
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 11 |
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 | ||