Use DestroyImageList instead of DestroyImage 98/229198/4 accepted/tizen/unified/20200331.030826 submit/tizen/20200330.082244
authorMinje Ahn <minje.ahn@samsung.com>
Mon, 30 Mar 2020 08:06:39 +0000 (17:06 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Mon, 30 Mar 2020 08:16:42 +0000 (17:16 +0900)
If input image type is agif, returned Image structure is list.

Change-Id: Ibfbd7be3f6c253a80fe71ebd69fc614798d4d10a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
magick/mm_util_magick.c

index b16ca36..2ddbdf2 100644 (file)
@@ -82,8 +82,8 @@ static void __mm_util_init(ExceptionInfo *exception)
 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);
@@ -209,8 +209,7 @@ static Image * __mm_util_resize_image(Image *image, unsigned int width, unsigned
                        CatchException(&exception);
        }
 
-       if (_sampled_image != NULL)
-               DestroyImage(_sampled_image);
+       DestroyImageList(_sampled_image);
 
        DestroyExceptionInfo(&exception);