Fix memory leak when remove item from g_list 64/264864/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Fri, 1 Oct 2021 08:53:08 +0000 (17:53 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Fri, 1 Oct 2021 08:53:08 +0000 (17:53 +0900)
Change-Id: I50f3d8a152982393f5eff313a7ab31cd45fb52b6
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/tts_config_mgr.c

index 26108310eb46cc61ba3e0ef55ed97b58b45c5f04..6b6130038af77fcefc3b04a4eb96ab86a5e4a639 100644 (file)
@@ -1063,8 +1063,7 @@ static int __tts_config_mgr_unregister_engine_config_updated_event()
                                tmp = NULL;
                        }
 
-                       g_ino_list = g_list_remove_link(g_ino_list, iter);
-
+                       g_ino_list = g_list_delete_link(g_ino_list, iter);
                        iter = g_list_first(g_ino_list);
                }
        }