summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-06-03 15:52:51 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-06-03 15:52:51 +0000
commit4bf06e9d9eaea15b4e0f251571877da985901bf4 (patch)
tree9ad143ac19a2e2cf280489a5413346ae692d8aeb
parent5ac0d04df13361d3151c7a77593fa36b371b51cf (diff)
Replace destroy function with proper unregister call
-rw-r--r--hcid/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hcid/device.c b/hcid/device.c
index dc3e1c20..88f412c6 100644
--- a/hcid/device.c
+++ b/hcid/device.c
@@ -1052,7 +1052,7 @@ void device_remove(struct device *device, DBusConnection *conn)
{
debug("Removing device %s", device->path);
- dbus_connection_destroy_object_path(conn, device->path);
+ g_dbus_unregister_interface(conn, device->path, DEVICE_INTERFACE);
}
gint device_address_cmp(struct device *device, const gchar *address)