* image.c (imagemagick_get_animation_cache): Don't segfault when

pruning all entries.
parent f747d82e
2013-08-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
* image.c (imagemagick_get_animation_cache): Don't segfault when
pruning all entries.
2013-08-18 Ken Brown <kbrown@cornell.edu> 2013-08-18 Ken Brown <kbrown@cornell.edu>
* sheap.c (STATIC_HEAP_SIZE): Adjust to current needs; use bigger * sheap.c (STATIC_HEAP_SIZE): Adjust to current needs; use bigger
......
...@@ -7932,9 +7932,10 @@ struct animation_cache * ...@@ -7932,9 +7932,10 @@ struct animation_cache *
imagemagick_get_animation_cache (MagickWand *wand) imagemagick_get_animation_cache (MagickWand *wand)
{ {
char *signature = xstrdup (MagickGetImageSignature (wand)); char *signature = xstrdup (MagickGetImageSignature (wand));
struct animation_cache *cache = animation_cache; struct animation_cache *cache;
imagemagick_prune_animation_cache (); imagemagick_prune_animation_cache ();
cache = animation_cache;
if (! cache) if (! cache)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment