summaryrefslogtreecommitdiffstats
path: root/hcid/adapter.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2008-03-13 12:34:10 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2008-03-13 12:34:10 +0000
commit81cfb0fc353b88658aec4c1ee0eb6cc5f851df41 (patch)
tree3107427069c2a64b7b2494b8661995ce9bcc362f /hcid/adapter.c
parent25e819828847f241fe0f77565edf0dffad5700c9 (diff)
cleanup: removed device's static D-Bus connection reference
Diffstat (limited to 'hcid/adapter.c')
-rw-r--r--hcid/adapter.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hcid/adapter.c b/hcid/adapter.c
index 763118e8..3897bbb1 100644
--- a/hcid/adapter.c
+++ b/hcid/adapter.c
@@ -3358,7 +3358,8 @@ static void discover_services_cb(gpointer user_data, sdp_list_t *recs, int err)
sdp_list_free(recs, (sdp_free_func_t) sdp_record_free);
- device = device_create(adapter, adapter->create->address, uuids);
+ device = device_create(adapter->create->conn, adapter,
+ adapter->create->address, uuids);
if (!device)
goto failed;
@@ -3490,7 +3491,7 @@ static DBusHandlerResult remove_device(DBusConnection *conn,
DBUS_TYPE_OBJECT_PATH, &device->path,
DBUS_TYPE_INVALID);
- device_destroy(device);
+ device_destroy(device, conn);
adapter->devices = g_slist_remove(adapter->devices, device);
return send_message_and_unref(conn, reply);