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>
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);
-}
-