diff options
| author | Joakim Verona | 2013-08-16 17:22:23 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-08-16 17:22:23 +0200 |
| commit | 2bc8a1cc3cb8347f820d1c59319ee45fdb06c351 (patch) | |
| tree | f1a9de804a93785908db3034e7d6afe13d1ec116 /src/image.c | |
| parent | bd2867f0787a5dc14da39859830c3d3024b1e117 (diff) | |
| parent | 4b5fe4ee092b847504023d3a471e1924c63f0155 (diff) | |
| download | emacs-2bc8a1cc3cb8347f820d1c59319ee45fdb06c351.tar.gz emacs-2bc8a1cc3cb8347f820d1c59319ee45fdb06c351.zip | |
merge from trunk
Diffstat (limited to 'src/image.c')
| -rw-r--r-- | src/image.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/image.c b/src/image.c index 082cc6a762a..3607be1e86c 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -7901,7 +7901,7 @@ void | |||
| 7901 | imagemagick_prune_animation_cache () | 7901 | imagemagick_prune_animation_cache () |
| 7902 | { | 7902 | { |
| 7903 | struct animation_cache *cache = animation_cache; | 7903 | struct animation_cache *cache = animation_cache; |
| 7904 | struct animation_cache *prev; | 7904 | struct animation_cache *prev = NULL; |
| 7905 | EMACS_TIME old = sub_emacs_time (current_emacs_time (), | 7905 | EMACS_TIME old = sub_emacs_time (current_emacs_time (), |
| 7906 | EMACS_TIME_FROM_DOUBLE (60)); | 7906 | EMACS_TIME_FROM_DOUBLE (60)); |
| 7907 | 7907 | ||
| @@ -7920,17 +7920,18 @@ imagemagick_prune_animation_cache () | |||
| 7920 | cache = cache->next; | 7920 | cache = cache->next; |
| 7921 | free (this_cache); | 7921 | free (this_cache); |
| 7922 | } | 7922 | } |
| 7923 | else { | 7923 | else |
| 7924 | prev = cache; | 7924 | { |
| 7925 | cache = cache->next; | 7925 | prev = cache; |
| 7926 | } | 7926 | cache = cache->next; |
| 7927 | } | ||
| 7927 | } | 7928 | } |
| 7928 | } | 7929 | } |
| 7929 | 7930 | ||
| 7930 | struct animation_cache * | 7931 | struct animation_cache * |
| 7931 | imagemagick_get_animation_cache (MagickWand *wand) | 7932 | imagemagick_get_animation_cache (MagickWand *wand) |
| 7932 | { | 7933 | { |
| 7933 | char *signature = MagickGetImageSignature (wand); | 7934 | char *signature = xstrdup (MagickGetImageSignature (wand)); |
| 7934 | struct animation_cache *cache = animation_cache; | 7935 | struct animation_cache *cache = animation_cache; |
| 7935 | 7936 | ||
| 7936 | imagemagick_prune_animation_cache (); | 7937 | imagemagick_prune_animation_cache (); |