From c52021f34026c3b2d0649920a2a8c342e660085a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Fri, 22 Feb 2019 00:00:00 +0000 Subject: [PATCH] tests: Don't leak check-proxies thread --- gio/tests/gdbus-test-codegen.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gio/tests/gdbus-test-codegen.c b/gio/tests/gdbus-test-codegen.c index 8db555781..985cb1095 100644 --- a/gio/tests/gdbus-test-codegen.c +++ b/gio/tests/gdbus-test-codegen.c @@ -583,10 +583,8 @@ on_name_acquired (GDBusConnection *connection, gpointer user_data) { GMainLoop *loop = user_data; - - g_thread_new ("check-proxies", - check_proxies_in_thread, - loop); + GThread *thread = g_thread_new ("check-proxies", check_proxies_in_thread, loop); + g_thread_unref (thread); } static void