diff options
| author | Eli Zaretskii | 2024-07-12 09:39:39 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-07-12 09:39:39 +0300 |
| commit | ce13eee5ab73e73ffd5d8e67a1dd21fc667ab7e1 (patch) | |
| tree | b5b862bd2c48a9638ff06c008dc3b26403b91bcf /src | |
| parent | b22ab99f0a85f73a1aec582f7aba0e6b5101b953 (diff) | |
| download | emacs-ce13eee5ab73e73ffd5d8e67a1dd21fc667ab7e1.tar.gz emacs-ce13eee5ab73e73ffd5d8e67a1dd21fc667ab7e1.zip | |
; * src/image.c (free_image_cache): Add assertion. (Bug#71929)
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 | ||