diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/image.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c index 2ee2f3245be..3d761bd48be 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -2306,6 +2306,9 @@ free_image_cache (struct frame *f) | |||
| 2306 | struct image_cache *c = FRAME_IMAGE_CACHE (f); | 2306 | struct image_cache *c = FRAME_IMAGE_CACHE (f); |
| 2307 | ptrdiff_t i; | 2307 | ptrdiff_t i; |
| 2308 | 2308 | ||
| 2309 | /* This function assumes the caller already verified that the frame's | ||
| 2310 | image cache is non-NULL. */ | ||
| 2311 | eassert (c); | ||
| 2309 | /* Cache should not be referenced by any frame when freed. */ | 2312 | /* Cache should not be referenced by any frame when freed. */ |
| 2310 | eassert (c->refcount == 0); | 2313 | eassert (c->refcount == 0); |
| 2311 | 2314 | ||