mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-10 12:55:48 +01:00
gdbus-connection: Fix use after free in test
https://bugzilla.gnome.org/show_bug.cgi?id=711802
This commit is contained in:
parent
95526b5db5
commit
0d51ff79ed
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user