--- unit/test-gdbus-client.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/unit/test-gdbus-client.c b/unit/test-gdbus-client.c index 685729a..ee8a760 100644 --- a/unit/test-gdbus-client.c +++ b/unit/test-gdbus-client.c @@ -101,6 +101,7 @@ static void destroy_context(struct context *context) dbus_connection_flush(context->dbus_conn); dbus_connection_close(context->dbus_conn); + dbus_connection_unref(context->dbus_conn); g_main_loop_unref(context->main_loop); @@ -956,6 +957,10 @@ static void client_force_disconnect(void) g_main_loop_run(context->main_loop); + g_dbus_unregister_interface(conn, SERVICE_PATH, SERVICE_NAME1); + g_dbus_detach_object_manager(conn); + dbus_connection_unref(conn); + destroy_context(context); } -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html