From: Haesu Gwon Date: Fri, 22 Apr 2022 01:40:19 +0000 (+0900) Subject: Fix that pass freed memory pointer to function X-Git-Tag: submit/tizen/20220422.022746^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96fabf1a2452770a80210743940636a5d090546f;p=platform%2Fcore%2Fapi%2Fmediaeditor.git Fix that pass freed memory pointer to function Actually, it doesn't make runtime error but it's not needed log, so it's removed. Remove useless logs also. [Version] 0.0.3 [Issue Type] SVACE defects fix Change-Id: If7ef3bd8e01bfb8d7c64f2c2446c5e74074cb393 --- diff --git a/packaging/capi-media-editor.spec b/packaging/capi-media-editor.spec index 3f7da7e..0f39b95 100644 --- a/packaging/capi-media-editor.spec +++ b/packaging/capi-media-editor.spec @@ -1,6 +1,6 @@ Name: capi-media-editor Summary: A Tizen Media Editor API -Version: 0.0.2 +Version: 0.0.3 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/src/media_editor_ini.c b/src/media_editor_ini.c index c42becb..7938a85 100644 --- a/src/media_editor_ini.c +++ b/src/media_editor_ini.c @@ -183,7 +183,6 @@ static bool __ini_get_boolean(dictionary *dict, const char *category, const char int _load_ini(mediaeditor_s *editor) { - LOG_DEBUG("Enter [%p]", editor); mediaeditor_ini_s *ini = NULL; RET_VAL_IF(editor == NULL, MEDIAEDITOR_ERROR_INVALID_PARAMETER, "editor is NULL"); @@ -226,8 +225,6 @@ int _load_ini(mediaeditor_s *editor) void _unload_ini(mediaeditor_s *editor) { - LOG_DEBUG("Enter [%p]", editor); - RET_IF(editor == NULL, "editor is NULL"); RET_IF(editor->ini.dict == NULL, "ini.dict is NULL"); @@ -235,7 +232,6 @@ void _unload_ini(mediaeditor_s *editor) editor->ini.general.gst_args = NULL; iniparser_freedict(editor->ini.dict); - LOG_DEBUG("ini instance[%p] is freed", editor->ini.dict); editor->ini.dict = NULL; }