summaryrefslogtreecommitdiff
path: root/src/image.c
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2012-07-13 14:20:07 +0200
committerJan Djärv <jan.h.d@swipnet.se>2012-07-13 14:20:07 +0200
commit2277de02b932b0c685a832dbcdc224885decbb30 (patch)
treeee70b3f87cfb8e76c299ff2c1fcf8fd5954a649a /src/image.c
parentef099b57b6fb2de43feb3b40860dd9a3fbc7fdbd (diff)
downloademacs-2277de02b932b0c685a832dbcdc224885decbb30.tar.gz
* image.c (Fimagemagick_types): Initialize ex with GetExceptionInfo
and free it with DestroyExceptionInfo. Fixes: debbugs:11558
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index 88d2f36cda9..6f2afb28cd2 100644
--- a/src/image.c
+++ b/src/image.c
@@ -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]);