summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-common.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-17 23:48:27 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-17 23:48:27 +0000
commitdb222e43d0ad90f94eefef03ff53bac26316c8a9 (patch)
treeede5bb74855c9462fb971e750e402cd4474607e2 /hcid/dbus-common.c
parentbbb1288a3ff9cd6a4c6f3090b5022dda5c8a022e (diff)
Remove wrong unref of the D-Bus connection
Diffstat (limited to 'hcid/dbus-common.c')
-rw-r--r--hcid/dbus-common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hcid/dbus-common.c b/hcid/dbus-common.c
index 5cbcc77c..c84b7c37 100644
--- a/hcid/dbus-common.c
+++ b/hcid/dbus-common.c
@@ -344,8 +344,9 @@ void hcid_dbus_exit(void)
done:
unregister_adapter_path(BASE_PATH);
- dbus_connection_unref(conn);
set_dbus_connection(NULL);
+
+ dbus_connection_unref(conn);
}
int hcid_dbus_init(void)
@@ -364,8 +365,6 @@ int hcid_dbus_init(void)
set_dbus_connection(conn);
- dbus_connection_unref(conn);
-
return 0;
}