diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-08-19 00:01:37 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-08-19 00:01:37 -0700 |
commit | d0139df5b60d235363e78438316e255ac378c884 (patch) | |
tree | 1ff811c2211a04fa56ddcccdd8986c2f2bb22756 /lisp/emacs-lisp/lisp.el | |
parent | 2249012558e589b9382e068326116dbd909bbb81 (diff) | |
download | emacs-d0139df5b60d235363e78438316e255ac378c884.tar.gz emacs-d0139df5b60d235363e78438316e255ac378c884.tar.bz2 emacs-d0139df5b60d235363e78438316e255ac378c884.zip |
* 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.
Diffstat (limited to 'lisp/emacs-lisp/lisp.el')
0 files changed, 0 insertions, 0 deletions