(imagemagick_get_animation_cache): Fix memory leak.
This commit is contained in:
parent
824a2fa737
commit
453f40228f
2 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,9 @@
|
|||
|
||||
* image.c (imagemagick_get_animation_cache): Don't segfault on
|
||||
each invocation.
|
||||
(imagemagick_get_animation_cache): Revert to previous definition
|
||||
so that it actually works. But keep the memory leak fix.
|
||||
(imagemagick_get_animation_cache): Fix memory leak.
|
||||
|
||||
2013-08-19 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
|
|
|
@ -7945,10 +7945,10 @@ imagemagick_get_animation_cache (MagickWand *wand)
|
|||
if (strcmp (signature, cache->signature))
|
||||
{
|
||||
cache->next = imagemagick_create_cache (signature);
|
||||
DestroyString (signature);
|
||||
return cache->next;
|
||||
}
|
||||
|
||||
DestroyString (signature);
|
||||
cache->update_time = current_emacs_time ();
|
||||
return cache;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue