Commit 686b520f authored by Andreas Schwab's avatar Andreas Schwab
Browse files

Fix memory leak in imagemagick-types

* src/image.c (Fimagemagick_types): Use AcquireExceptionInfo to
avoid memory leak.
parent 4069b716
...@@ -8885,13 +8885,13 @@ and `imagemagick-types-inhibit'. */) ...@@ -8885,13 +8885,13 @@ and `imagemagick-types-inhibit'. */)
{ {
Lisp_Object typelist = Qnil; Lisp_Object typelist = Qnil;
size_t numf = 0; size_t numf = 0;
ExceptionInfo ex; ExceptionInfo *ex;
char **imtypes; char **imtypes;
size_t i; size_t i;
GetExceptionInfo(&ex); ex = AcquireExceptionInfo ();
imtypes = GetMagickList ("*", &numf, &ex); imtypes = GetMagickList ("*", &numf, ex);
DestroyExceptionInfo(&ex); DestroyExceptionInfo (ex);
for (i = 0; i < numf; i++) for (i = 0; i < numf; i++)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment