gdbus-connection: Fix use after free in test
authorStef Walter <stefw@gnome.org>
Sat, 9 Nov 2013 19:28:41 +0000 (20:28 +0100)
committerStef Walter <stefw@gnome.org>
Mon, 11 Nov 2013 06:12:26 +0000 (07:12 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=711802

gio/tests/gdbus-connection.c

index 9cd1e10..56e5b6c 100644 (file)
@@ -1142,10 +1142,7 @@ test_connection_serials (void)
 
   /* Wait until threads are finished */
   for (i = 0; i < NUM_THREADS; i++)
-    {
       g_thread_join (pool[i]);
-      g_thread_unref (pool[i]);
-    }
 
   /* No calls in between on this thread, should be the last value */
   g_assert_cmpint (g_dbus_connection_get_last_serial (c), ==, 2);