; * src/image.c (free_image_cache): Add assertion. (Bug#71929)
This commit is contained in:
parent
b22ab99f0a
commit
ce13eee5ab
1 changed files with 3 additions and 0 deletions
|
@ -2306,6 +2306,9 @@ free_image_cache (struct frame *f)
|
||||||
struct image_cache *c = FRAME_IMAGE_CACHE (f);
|
struct image_cache *c = FRAME_IMAGE_CACHE (f);
|
||||||
ptrdiff_t i;
|
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. */
|
/* Cache should not be referenced by any frame when freed. */
|
||||||
eassert (c->refcount == 0);
|
eassert (c->refcount == 0);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue