Fix memory leak in imagemagick-types
* src/image.c (Fimagemagick_types): Use AcquireExceptionInfo to avoid memory leak.
This commit is contained in:
parent
4069b716ad
commit
686b520ff9
1 changed files with 4 additions and 4 deletions
|
@ -8885,13 +8885,13 @@ and `imagemagick-types-inhibit'. */)
|
|||
{
|
||||
Lisp_Object typelist = Qnil;
|
||||
size_t numf = 0;
|
||||
ExceptionInfo ex;
|
||||
ExceptionInfo *ex;
|
||||
char **imtypes;
|
||||
size_t i;
|
||||
|
||||
GetExceptionInfo(&ex);
|
||||
imtypes = GetMagickList ("*", &numf, &ex);
|
||||
DestroyExceptionInfo(&ex);
|
||||
ex = AcquireExceptionInfo ();
|
||||
imtypes = GetMagickList ("*", &numf, ex);
|
||||
DestroyExceptionInfo (ex);
|
||||
|
||||
for (i = 0; i < numf; i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue