Commit 2277de02 authored by Jan Djärv's avatar Jan Djärv

* image.c (Fimagemagick_types): Initialize ex with GetExceptionInfo

and free it with DestroyExceptionInfo.

Fixes: debbugs:11558
parent ef099b57
2012-07-13 Kalle Kankare <kalle.kankare@iki.fi> (tiny change)
* image.c (Fimagemagick_types): Initialize ex with GetExceptionInfo
and free it with DestroyExceptionInfo (Bug#11558).
2012-07-13 Juanma Barranquero <lekktu@gmail.com>
* s/ms-w32.h (FIRST_PTY_LETTER, HAVE_SOCKETS): Move to nt/config.nt.
......
......@@ -7968,9 +7968,14 @@ and `imagemagick-types-inhibit'. */)
Lisp_Object typelist = Qnil;
size_t numf = 0;
ExceptionInfo ex;
char **imtypes = GetMagickList ("*", &numf, &ex);
char **imtypes;
size_t i;
Lisp_Object Qimagemagicktype;
GetExceptionInfo(&ex);
imtypes = GetMagickList ("*", &numf, &ex);
DestroyExceptionInfo(&ex);
for (i = 0; i < numf; i++)
{
Qimagemagicktype = intern (imtypes[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