Fix memory leak 50/58150/1 accepted/tizen/mobile/20160128.050646 accepted/tizen/tv/20160128.050711 accepted/tizen/wearable/20160128.050738 submit/tizen/20160128.025209
authorJunghoon Park <jh9216.park@samsung.com>
Thu, 28 Jan 2016 02:47:11 +0000 (11:47 +0900)
committerJunghoon Park <jh9216.park@samsung.com>
Thu, 28 Jan 2016 02:47:11 +0000 (11:47 +0900)
Change-Id: I36bcbdd2ac175dbc5c23dda7a40cd5fe23eb1085
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
src/launchpad.c

index 18e4c83..c14403b 100755 (executable)
@@ -1081,7 +1081,7 @@ static int __remove_slot(int type, int loader_id)
                        if (cpc->source > 0)
                                g_source_remove(cpc->source);
 
-                       candidate_slot_list = g_list_remove_link(candidate_slot_list, iter);
+                       candidate_slot_list = g_list_delete_link(candidate_slot_list, iter);
                        free(cpc->loader_path);
                        if (cpc->loader_extra)
                                free(cpc->loader_extra);