summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-hci.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2008-03-07 17:53:50 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2008-03-07 17:53:50 +0000
commitda0e7105811dc046d13d0365404efc1189ee4a8c (patch)
treedffa4eee585192d1402a6427bb087a7263cc399c /hcid/dbus-hci.c
parentc6638ee5c399991f1496b213de64529fcd8556eb (diff)
Registering device's object path
Diffstat (limited to 'hcid/dbus-hci.c')
-rw-r--r--hcid/dbus-hci.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hcid/dbus-hci.c b/hcid/dbus-hci.c
index 4e082ab3..defa5375 100644
--- a/hcid/dbus-hci.c
+++ b/hcid/dbus-hci.c
@@ -442,6 +442,11 @@ int unregister_adapter_path(const char *path)
dc_pending_timeout_cleanup(adapter);
}
+ if (adapter->devices) {
+ g_slist_foreach(adapter->devices, (GFunc) free, NULL);
+ g_slist_free(adapter->devices);
+ }
+
g_free(adapter);
unreg: