[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-30 ce13eee5ab7: ; * src/image.c (free_image_cache): Add assertion.
From: |
Eli Zaretskii |
Subject: |
emacs-30 ce13eee5ab7: ; * src/image.c (free_image_cache): Add assertion. (Bug#71929) |
Date: |
Fri, 12 Jul 2024 02:40:06 -0400 (EDT) |
branch: emacs-30
commit ce13eee5ab73e73ffd5d8e67a1dd21fc667ab7e1
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
; * src/image.c (free_image_cache): Add assertion. (Bug#71929)
---
src/image.c | 3 +++
1 file changed, 3 insertions(+)
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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-30 ce13eee5ab7: ; * src/image.c (free_image_cache): Add assertion. (Bug#71929),
Eli Zaretskii <=