gdbus-connection: Fix use after free in test

https://bugzilla.gnome.org/show_bug.cgi?id=711802
This commit is contained in:
Stef Walter 2013-11-09 20:28:41 +01:00
parent 95526b5db5
commit 0d51ff79ed

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