aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Verona2013-08-19 20:11:40 +0200
committerJoakim Verona2013-08-19 20:11:40 +0200
commit0c1b014bcd625bb88708aff3c7d401aa3b88fa07 (patch)
tree23865ef720a133f4b1402b50509ecd3b799f48d1
parentdb3552accac421806591cb6b189f093e8f7c5f47 (diff)
parent453f40228f8ff3d43665f5bf008b117bf9b9a7dc (diff)
downloademacs-0c1b014bcd625bb88708aff3c7d401aa3b88fa07.tar.gz
emacs-0c1b014bcd625bb88708aff3c7d401aa3b88fa07.zip
merge from trunk
-rw-r--r--src/ChangeLog3
-rw-r--r--src/image.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 716b1177fd1..2171f2b8748 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -2,6 +2,9 @@
2 2
3 * image.c (imagemagick_get_animation_cache): Don't segfault on 3 * image.c (imagemagick_get_animation_cache): Don't segfault on
4 each invocation. 4 each invocation.
5 (imagemagick_get_animation_cache): Revert to previous definition
6 so that it actually works. But keep the memory leak fix.
7 (imagemagick_get_animation_cache): Fix memory leak.
5 8
62013-08-19 Paul Eggert <eggert@cs.ucla.edu> 92013-08-19 Paul Eggert <eggert@cs.ucla.edu>
7 10
diff --git a/src/image.c b/src/image.c
index 2b415fb9b97..7a6323ad332 100644
--- a/src/image.c
+++ b/src/image.c
@@ -7945,10 +7945,10 @@ imagemagick_get_animation_cache (MagickWand *wand)
7945 if (strcmp (signature, cache->signature)) 7945 if (strcmp (signature, cache->signature))
7946 { 7946 {
7947 cache->next = imagemagick_create_cache (signature); 7947 cache->next = imagemagick_create_cache (signature);
7948 DestroyString (signature);
7949 return cache->next; 7948 return cache->next;
7950 } 7949 }
7951 7950
7951 DestroyString (signature);
7952 cache->update_time = current_emacs_time (); 7952 cache->update_time = current_emacs_time ();
7953 return cache; 7953 return cache;
7954} 7954}