Commit ed44be70 authored by Paul Eggert's avatar Paul Eggert
Browse files

Minor cleanup of previous change.

* image.c (imagemagick_error, Fimagemagick_types):
Omit some recently-introduced and unnecessary casts and assignments.
parent d4f0427b
2014-01-23 Paul Eggert <eggert@cs.ucla.edu>
Minor cleanup of previous change.
* image.c (imagemagick_error, Fimagemagick_types):
Omit some recently-introduced and unnecessary casts and assignments.
2014-01-23 Dmitry Antipov <dmantipov@yandex.ru>
Fix two memory leaks discovered with Valgrind.
......
......@@ -7908,7 +7908,7 @@ imagemagick_error (MagickWand *wand)
image_error ("ImageMagick error: %s",
build_string (description),
Qnil);
description = (char *) MagickRelinquishMemory (description);
MagickRelinquishMemory (description);
}
/* Possibly give ImageMagick some extra help to determine the image
......@@ -8546,10 +8546,10 @@ and `imagemagick-types-inhibit'. */)
{
Qimagemagicktype = intern (imtypes[i]);
typelist = Fcons (Qimagemagicktype, typelist);
imtypes[i] = (char *) MagickRelinquishMemory (imtypes[i]);
imtypes[i] = MagickRelinquishMemory (imtypes[i]);
}
imtypes = (char **) MagickRelinquishMemory (imtypes);
MagickRelinquishMemory (imtypes);
return Fnreverse (typelist);
}
......
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