mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-31 06:13:29 +02:00
gdbus-connection: Fix use after free in test
https://bugzilla.gnome.org/show_bug.cgi?id=711802
This commit is contained in:
@@ -1142,10 +1142,7 @@ test_connection_serials (void)
|
|||||||
|
|
||||||
/* Wait until threads are finished */
|
/* Wait until threads are finished */
|
||||||
for (i = 0; i < NUM_THREADS; i++)
|
for (i = 0; i < NUM_THREADS; i++)
|
||||||
{
|
|
||||||
g_thread_join (pool[i]);
|
g_thread_join (pool[i]);
|
||||||
g_thread_unref (pool[i]);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* No calls in between on this thread, should be the last value */
|
/* No calls in between on this thread, should be the last value */
|
||||||
g_assert_cmpint (g_dbus_connection_get_last_serial (c), ==, 2);
|
g_assert_cmpint (g_dbus_connection_get_last_serial (c), ==, 2);
|
||||||
|
Reference in New Issue
Block a user