Fix that pass freed memory pointer to function 33/274133/3 accepted/tizen/unified/20220422.133441 submit/tizen/20220422.022746
authorHaesu Gwon <haesu.gwon@samsung.com>
Fri, 22 Apr 2022 01:40:19 +0000 (10:40 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Fri, 22 Apr 2022 01:55:53 +0000 (10:55 +0900)
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

packaging/capi-media-editor.spec
src/media_editor_ini.c

index 3f7da7e46e7e3c40a5415d87cb7172aaef1ed1ae..0f39b954139507b5114f6da4241c7623830695af 100644 (file)
@@ -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
index c42becb15bc9f04b459b727d77d3525cfab3ebb8..7938a85dcfb0e49f1548a26ed702c39acd6f81cb 100644 (file)
@@ -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;
 }