If input image type is agif, returned Image structure is list.
Change-Id: I16c3b1cbde6048c45cad5ff07ea51d9dfa52dbcc
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
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);
+ DestroyImageList(image_1);
+ DestroyImageList(image_2);
if (imageInfo != NULL)
DestroyImageInfo(imageInfo);
CatchException(&exception);
}
- if (_sampled_image != NULL)
- DestroyImage(_sampled_image);
+ DestroyImageList(_sampled_image);
DestroyExceptionInfo(&exception);