If input image type is agif, returned Image structure is list.
Change-Id: Ibfbd7be3f6c253a80fe71ebd69fc614798d4d10a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
static void __mm_util_finalize(Image *image_1, Image *image_2, ExceptionInfo *exception)
{
- DestroyImage(image_1);
- DestroyImage(image_2);
+ DestroyImageList(image_1);
+ DestroyImageList(image_2);
if (exception != NULL)
DestroyExceptionInfo(exception);
CatchException(&exception);
}
- if (_sampled_image != NULL)
- DestroyImage(_sampled_image);
+ DestroyImageList(_sampled_image);
DestroyExceptionInfo(&exception);