Remove destructor function 30/86830/1 accepted/tizen/common/20160905.171445 accepted/tizen/ivi/20160905.235915 accepted/tizen/mobile/20160905.235752 accepted/tizen/tv/20160905.235822 accepted/tizen/wearable/20160905.235848 submit/tizen/20160905.010800
authorSemun Lee <sm79.lee@samsung.com>
Mon, 5 Sep 2016 06:26:38 +0000 (15:26 +0900)
committerSemun Lee <sm79.lee@samsung.com>
Mon, 5 Sep 2016 06:26:38 +0000 (15:26 +0900)
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 <sm79.lee@samsung.com>
lib/buxton2.c

index d35f6b7..84d0db1 100644 (file)
@@ -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);
-}
-