Commit c225ff83 authored by Ralf Habacker's avatar Ralf Habacker

Fix 'dbus connection referencing issue in test-relay'.

The watches added on connection setup should be removed on shutdown.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90005Reviewed-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
parent 96e02c5d
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment