* image.c: Fix animation cache signature memory leak.
commitd0139df5b60d235363e78438316e255ac378c884
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Aug 2013 07:01:37 +0000 (19 00:01 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Aug 2013 07:01:37 +0000 (19 00:01 -0700)
tree1ff811c2211a04fa56ddcccdd8986c2f2bb22756
parent2249012558e589b9382e068326116dbd909bbb81
* image.c: Fix animation cache signature memory leak.

Fix some other minor performance problems while we're at it.
(imagemagick_create_cache): Clear just the members that
need clearing.  Don't set update_time, as caller does that now.
(imagemagick_prune_animation_cache, imagemagick_get_animation_cache):
Simplify by using pointer-to-pointer instead of a prev pointer.
(imagemagick_prune_animation_cache): Use make_emacs_time rather
than EMACS_TIME_FROM_DOUBLE, and DestroyString rather than free.
(imagemagick_get_animation_cache): Don't xstrdup the image signature;
it's already a copy.  Free the signature probe unless it's cached.
src/ChangeLog
src/image.c