From 06fdaa54c0efea9196f399122332b60d475a3798 Mon Sep 17 00:00:00 2001 From: hj kim Date: Tue, 7 Jul 2020 18:42:00 +0900 Subject: [PATCH] Remove unhelpful msg Change-Id: I56a0755f6635d3e9a9d8114960718b0b45afd6f7 --- common/mm_util_image.c | 3 ++- magick/mm_util_magick.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/mm_util_image.c b/common/mm_util_image.c index 8a89181..a09c4d5 100755 --- a/common/mm_util_image.c +++ b/common/mm_util_image.c @@ -160,7 +160,8 @@ void mm_image_destroy_image(mm_util_image_h image) { mm_image_info_s *_image = (mm_image_info_s *)image; - mm_util_retm_if(image == NULL, "Invalid image"); + if (!image) + return; /* Just TEMP_DATA_SIZE has been used internally. * It will be removed after removing deprecated CAPIs. */ diff --git a/magick/mm_util_magick.c b/magick/mm_util_magick.c index b2a7eae..4c0bb3d 100644 --- a/magick/mm_util_magick.c +++ b/magick/mm_util_magick.c @@ -1146,6 +1146,7 @@ ERROR: __mm_util_finalize(_image, NULL, NULL); g_free(map); + mm_image_destroy_image(converted_image); mm_util_fleave(); -- 2.7.4