summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/image.c3
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)
struct image_cache *c = FRAME_IMAGE_CACHE (f);
ptrdiff_t i;
+ /* This function assumes the caller already verified that the frame's
+ image cache is non-NULL. */
+ eassert (c);
/* Cache should not be referenced by any frame when freed. */
eassert (c->refcount == 0);