Change-Id: I2352805413ea9c0ecb1512935b6c1649c65b44de
SetErrorHandler(__mm_util_magick_error_handler);
SetFatalErrorHandler(__mm_util_magick_error_handler);
SetWarningHandler(__mm_util_magick_error_handler);
-
- return;
}
static void __mm_util_finalize(Image *image_1, Image *image_2, ImageInfo *imageInfo, ExceptionInfo *exception)
{
- if (image_1 != NULL)
- DestroyImage(image_1);
-
- if (image_2 != NULL)
- DestroyImage(image_2);
-
- if (imageInfo != NULL)
- DestroyImageInfo(imageInfo);
+ DestroyImage(image_1);
+ DestroyImage(image_2);
+ DestroyImageInfo(imageInfo);
if (exception != NULL)
DestroyExceptionInfo(exception);
DestroyMagick();
-
- return;
}
static int __mm_util_get_map(mm_util_color_format_e format, char **map)