diff options
-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; } |