From: Semun Lee Date: Mon, 5 Sep 2016 06:26:38 +0000 (+0900) Subject: Remove destructor function X-Git-Tag: submit/tizen/20160905.010800 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Fsubmit%2Ftizen%2F20160905.010800;p=platform%2Fcore%2Fsystem%2Fbuxton2.git Remove destructor function Some program may use vconf-buxton api not in main thread. When main threads exits the destructor may cause crash. Change-Id: I97df4c234078e305083f5c9514c234ffb6eccc19 Signed-off-by: Semun Lee --- diff --git a/lib/buxton2.c b/lib/buxton2.c index d35f6b7..84d0db1 100644 --- a/lib/buxton2.c +++ b/lib/buxton2.c @@ -2432,17 +2432,3 @@ EXPORT int buxton_open(struct buxton_client **client, return buxton_open_full(client, true, callback, user_data); } -__attribute__((destructor)) -static void buxton_client_exit(void) -{ - GList *l; - GList *n; - - pthread_mutex_lock(&clients_lock); - for (l = clients, n = g_list_next(l); l; l = n, n = g_list_next(n)) - free_client(l->data); - - clients = NULL; - pthread_mutex_unlock(&clients_lock); -} -