From: hj kim Date: Mon, 27 Apr 2020 08:10:29 +0000 (+0900) Subject: Use g_free() instead of free() X-Git-Tag: accepted/tizen/unified/20200429.032902~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F98%2F231998%2F1;p=platform%2Fcore%2Fmultimedia%2Flibmm-utility.git Use g_free() instead of free() Change-Id: I617cae832883701249caf82606e37cf7b1a48aa9 --- diff --git a/magick/mm_util_magick.c b/magick/mm_util_magick.c index f017331..df55d40 100644 --- a/magick/mm_util_magick.c +++ b/magick/mm_util_magick.c @@ -533,7 +533,7 @@ ERROR: __mm_util_finalize(_image, _processed_image, &exception); - MMUTIL_SAFE_FREE(map); + g_free(map); mm_util_fleave(); @@ -580,7 +580,7 @@ ERROR: __mm_util_finalize(_image, _processed_image, &exception); - MMUTIL_SAFE_FREE(map); + g_free(map); mm_util_fleave(); @@ -639,7 +639,7 @@ ERROR: __mm_util_finalize(_image, _processed_image, &exception); - MMUTIL_SAFE_FREE(map); + g_free(map); mm_util_fleave(); @@ -746,7 +746,7 @@ ERROR: __mm_util_finalize(_image, _processed_image, &exception); - MMUTIL_SAFE_FREE(map); + g_free(map); mm_util_fleave(); @@ -799,7 +799,7 @@ ERROR: __mm_util_finalize(_image, _processed_image, &exception); - MMUTIL_SAFE_FREE(map); + g_free(map); mm_util_fleave(); @@ -864,7 +864,7 @@ ERROR: __mm_util_finalize(_image, _processed_image, &exception); - MMUTIL_SAFE_FREE(map); + g_free(map); mm_util_fleave(); @@ -944,7 +944,7 @@ int mm_util_convert_B_B(mm_util_image_h src_handle, mm_util_color_format_e req_f goto ERROR; } - MMUTIL_SAFE_FREE(map); + g_free(map); ret = __mm_util_get_map(req_format, &map); if (ret != MM_UTIL_ERROR_NONE) { @@ -969,7 +969,7 @@ ERROR: __mm_util_finalize(_image, NULL, &exception); - MMUTIL_SAFE_FREE(map); + g_free(map); mm_util_fleave(); @@ -1017,7 +1017,7 @@ int mm_util_decode_image_from_file(const char *path, mm_util_color_format_e form ERROR: __mm_util_finalize(_image, NULL, NULL); - MMUTIL_SAFE_FREE(map); + g_free(map); mm_util_fleave(); @@ -1066,7 +1066,7 @@ int mm_util_decode_image_from_buffer(const void *buf, size_t buf_size, mm_util_c ERROR: __mm_util_finalize(_image, NULL, NULL); - MMUTIL_SAFE_FREE(map); + g_free(map); mm_util_fleave(); @@ -1131,7 +1131,7 @@ ERROR: __mm_util_finalize(_image, NULL, NULL); - MMUTIL_SAFE_FREE(map); + g_free(map); mm_image_destroy_image((mm_util_image_h)convert_image); mm_util_fleave();