diff options
author | hj kim <backto.kim@samsung.com> | 2020-04-28 11:09:19 +0900 |
---|---|---|
committer | hj kim <backto.kim@samsung.com> | 2020-04-28 15:04:16 +0900 |
commit | f9bd6950eca62b466ef14262dd64d5d1f382006f (patch) | |
tree | d7fcf70c193bd118c573d055bc7520bd87f9249b | |
parent | 36fe1b69c927196defe1c6fd4b1dabf37d777f1d (diff) | |
download | libmm-imgp-gstcs-accepted/tizen_6.0_unified_hotfix.tar.gz libmm-imgp-gstcs-accepted/tizen_6.0_unified_hotfix.tar.bz2 libmm-imgp-gstcs-accepted/tizen_6.0_unified_hotfix.zip |
Use g_free directly instead of using macrotizen_6.5.m2_releasetizen_6.0.m2_releasesubmit/tizen_6.5/20211028.162401submit/tizen_6.0_hotfix/20201103.114804submit/tizen_6.0_hotfix/20201102.192504submit/tizen_6.0/20201029.205104submit/tizen/20200428.070655accepted/tizen/unified/20200429.032906accepted/tizen/6.5/unified/20211028.114629accepted/tizen/6.0/unified/hotfix/20201103.003427accepted/tizen/6.0/unified/20201030.114432tizen_6.5tizen_6.0_hotfixtizen_6.0accepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unified
Change-Id: Id599c5b40b251a0a30e30177976f5682c091889d
-rwxr-xr-x | gstcs/include/mm_util_gstcs_internal.h | 1 | ||||
-rw-r--r-- | gstcs/mm_util_gstcs.c | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/gstcs/include/mm_util_gstcs_internal.h b/gstcs/include/mm_util_gstcs_internal.h index 2537d8a..bd2fbc8 100755 --- a/gstcs/include/mm_util_gstcs_internal.h +++ b/gstcs/include/mm_util_gstcs_internal.h @@ -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; diff --git a/gstcs/mm_util_gstcs.c b/gstcs/mm_util_gstcs.c index 8188603..0568383 100644 --- a/gstcs/mm_util_gstcs.c +++ b/gstcs/mm_util_gstcs.c @@ -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; } |