summaryrefslogtreecommitdiff
path: root/gsettings/dconfcontext.c
diff options
context:
space:
mode:
Diffstat (limited to 'gsettings/dconfcontext.c')
-rw-r--r--gsettings/dconfcontext.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gsettings/dconfcontext.c b/gsettings/dconfcontext.c
index 339507e..5e11980 100644
--- a/gsettings/dconfcontext.c
+++ b/gsettings/dconfcontext.c
@@ -24,10 +24,8 @@ dconf_context_get (void)
GThread *thread;
context = g_main_context_new ();
- thread = g_thread_create (dconf_context_thread,
- context, FALSE, NULL);
- g_assert (thread != NULL);
-
+ thread = g_thread_new ("dconf worker", dconf_context_thread, context);
+ g_thread_unref (thread);
g_once_init_leave (&initialised, 1);
}