From 46da65b0e5b5029c3b6a77cf370ef1927a4e46e5 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Mon, 13 Apr 2015 15:04:20 +0200 Subject: [PATCH] Fix 'dbus connection referencing issue in test-relay'. --- test/relay.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/relay.c b/test/relay.c index a6ccb41..0d9deff 100644 --- a/test/relay.c +++ b/test/relay.c @@ -273,6 +273,7 @@ teardown (Fixture *f, { if (f->left_client_conn != NULL) { + test_connection_shutdown(NULL, f->left_client_conn); dbus_connection_close (f->left_client_conn); dbus_connection_unref (f->left_client_conn); f->left_client_conn = NULL; @@ -280,6 +281,7 @@ teardown (Fixture *f, if (f->right_client_conn != NULL) { + test_connection_shutdown(NULL, f->right_client_conn); dbus_connection_close (f->right_client_conn); dbus_connection_unref (f->right_client_conn); f->right_client_conn = NULL; @@ -287,6 +289,7 @@ teardown (Fixture *f, if (f->left_server_conn != NULL) { + test_connection_shutdown(NULL, f->left_server_conn); dbus_connection_close (f->left_server_conn); dbus_connection_unref (f->left_server_conn); f->left_server_conn = NULL; @@ -294,6 +297,7 @@ teardown (Fixture *f, if (f->right_server_conn != NULL) { + test_connection_shutdown(NULL, f->right_server_conn); dbus_connection_close (f->right_server_conn); dbus_connection_unref (f->right_server_conn); f->right_server_conn = NULL; -- 1.8.4.5