[glib/wip/gcleanup] gdbus-connection: Fix use after free in test



commit a52490f65cdfddd0b713a23ec49f3e5ded0243d6
Author: Stef Walter <stefw gnome org>
Date:   Sat Nov 9 20:28:41 2013 +0100

    gdbus-connection: Fix use after free in test

 gio/tests/gdbus-connection.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/gio/tests/gdbus-connection.c b/gio/tests/gdbus-connection.c
index a2082e8..a041acb 100644
--- a/gio/tests/gdbus-connection.c
+++ b/gio/tests/gdbus-connection.c
@@ -1144,10 +1144,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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]