GTlsCertificate *certificate = NULL;
gint i;
- g_type_init ();
-
address = NULL;
connection = NULL;
if (cancel_timeout)
{
+ GThread *thread;
cancellable = g_cancellable_new ();
- g_thread_new ("cancel", cancel_thread, cancellable, FALSE, NULL);
+ thread = g_thread_new ("cancel", cancel_thread, cancellable);
+ g_thread_unref (thread);
}
else
{