+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.
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
{
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);
}