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



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

    gdbus-connection: Fix use after free in test
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711802

 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 09a0dd2..d458c6d 100644
--- a/gio/tests/gdbus-connection.c
+++ b/gio/tests/gdbus-connection.c
@@ -1143,10 +1143,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]