Use g_free directly instead of using macro 54/232054/6 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified tizen_6.0 tizen_6.0_hotfix tizen_6.5 accepted/tizen/6.0/unified/20201030.114432 accepted/tizen/6.0/unified/hotfix/20201103.003427 accepted/tizen/6.5/unified/20211028.114629 accepted/tizen/unified/20200429.032906 submit/tizen/20200428.070655 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 submit/tizen_6.5/20211028.162401 tizen_6.0.m2_release tizen_6.5.m2_release
authorhj kim <backto.kim@samsung.com>
Tue, 28 Apr 2020 02:09:19 +0000 (11:09 +0900)
committerhj kim <backto.kim@samsung.com>
Tue, 28 Apr 2020 06:04:16 +0000 (15:04 +0900)
Change-Id: Id599c5b40b251a0a30e30177976f5682c091889d

gstcs/include/mm_util_gstcs_internal.h
gstcs/mm_util_gstcs.c

index 2537d8a..bd2fbc8 100755 (executable)
@@ -82,7 +82,6 @@ extern "C" {
                        LOGD(FONT_COLOR_YELLOW"<LEAVE>"FONT_COLOR_RESET); \
                } while (0)
 
-#define GSTCS_FREE(src) { if (src) {g_free(src); src = NULL; } }
 typedef struct _image_format_s {
        mm_util_color_format_e color_format;
        int width;
index 8188603..0568383 100644 (file)
@@ -637,7 +637,7 @@ static int _mm_imgp_gstcs(imgp_info_s* pImgp_info, unsigned char *src, unsigned
        ret = _gstcs_create_default_thread(pGstreamer_s);
        if (ret != GSTCS_ERROR_NONE) {
                gstcs_error("Error: _gstcs_create_default_thread is failed");
-               GSTCS_FREE(pGstreamer_s);
+               g_free(pGstreamer_s);
                return ret;
        }
 
@@ -654,7 +654,7 @@ static int _mm_imgp_gstcs(imgp_info_s* pImgp_info, unsigned char *src, unsigned
        if (ret != GSTCS_ERROR_NONE)
                gstcs_error("Error: _gstcs_create_default_thread is failed");
 
-       GSTCS_FREE(pGstreamer_s);
+       g_free(pGstreamer_s);
 
        return ret;
 }