summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test-utils.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test-utils.c b/test/test-utils.c
index 843fda1a..53ad4a4e 100644
--- a/test/test-utils.c
+++ b/test/test-utils.c
@@ -108,7 +108,8 @@ test_connection_setup (TestMainContext *ctx,
dbus_connection_set_dispatch_status_function (connection, dispatch_status_function,
loop, NULL);
-
+ /* ownership of cd taken */
+
cd = cdata_new (loop, connection);
if (cd == NULL)
goto nomem;
@@ -132,6 +133,9 @@ test_connection_setup (TestMainContext *ctx,
cd, cdata_free))
goto nomem;
+ /* ownership taken */
+ cd = NULL;
+
if (dbus_connection_get_dispatch_status (connection) != DBUS_DISPATCH_COMPLETE)
{
if (!_dbus_loop_queue_dispatch (loop, connection))