summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhj kim <backto.kim@samsung.com>2020-04-28 11:09:19 +0900
committerhj kim <backto.kim@samsung.com>2020-04-28 15:04:16 +0900
commitf9bd6950eca62b466ef14262dd64d5d1f382006f (patch)
treed7fcf70c193bd118c573d055bc7520bd87f9249b
parent36fe1b69c927196defe1c6fd4b1dabf37d777f1d (diff)
downloadlibmm-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
Change-Id: Id599c5b40b251a0a30e30177976f5682c091889d
-rwxr-xr-xgstcs/include/mm_util_gstcs_internal.h1
-rw-r--r--gstcs/mm_util_gstcs.c4
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;
}