Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
453f4022
Commit
453f4022
authored
Aug 19, 2013
by
Lars Magne Ingebrigtsen
Browse files
(imagemagick_get_animation_cache): Fix memory leak.
parent
824a2fa7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
src/ChangeLog
src/ChangeLog
+3
-0
src/image.c
src/image.c
+1
-1
No files found.
src/ChangeLog
View file @
453f4022
...
@@ -2,6 +2,9 @@
...
@@ -2,6 +2,9 @@
* image.c (imagemagick_get_animation_cache): Don't segfault on
* image.c (imagemagick_get_animation_cache): Don't segfault on
each invocation.
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>
2013-08-19 Paul Eggert <eggert@cs.ucla.edu>
...
...
src/image.c
View file @
453f4022
...
@@ -7945,10 +7945,10 @@ imagemagick_get_animation_cache (MagickWand *wand)
...
@@ -7945,10 +7945,10 @@ imagemagick_get_animation_cache (MagickWand *wand)
if (strcmp (signature, cache->signature))
if (strcmp (signature, cache->signature))
{
{
cache->next = imagemagick_create_cache (signature);
cache->next = imagemagick_create_cache (signature);
DestroyString (signature);
return cache->next;
return cache->next;
}
}
DestroyString (signature);
cache->update_time = current_emacs_time ();
cache->update_time = current_emacs_time ();
return cache;
return cache;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment