diff options
| author | Basil L. Contovounesios | 2026-01-27 15:13:15 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2026-01-28 10:29:46 +0100 |
| commit | f9080e9bc08367b2bdc8779975dd7d7945f36859 (patch) | |
| tree | af57de14c2f21d883d4ba3e64b16de7038a4784c /test/cedet/tests/teststruct.cpp | |
| parent | 89dad017639265c313fd0e90f02e00c2a1cfea84 (diff) | |
| download | emacs-f9080e9bc08367b2bdc8779975dd7d7945f36859.tar.gz emacs-f9080e9bc08367b2bdc8779975dd7d7945f36859.zip | |
Always unset lisp_data when freeing images
Historically only the GIF code did this (since it stores animation
metadata in lisp_data), and recently the WebP code followed suit.
The benefit of clearing lisp_data is not 100% clear (to me:
bug#66221#41), but it probably can't hurt, so do it unconditionally
for all image types to simplify conditional compilation and avoid
warnings (bug#80266).
* src/image.c (image_clear_image): Set lisp_data to nil.
[HAVE_GIF || HAVE_WEBP] (gif_clear_image):
[HAVE_IMAGEMAGICK] (imagemagick_clear_image): Remove, replacing all
uses with image_clear_image.
Diffstat (limited to 'test/cedet/tests/teststruct.cpp')
0 files changed, 0 insertions, 0 deletions