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



commit 0d51ff79edfb39d8b9e4d775a399404c1641784d
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 9cd1e10..56e5b6c 100644
--- a/gio/tests/gdbus-connection.c
+++ b/gio/tests/gdbus-connection.c
@@ -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);


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