diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-03-07 17:53:50 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-03-07 17:53:50 +0000 |
commit | da0e7105811dc046d13d0365404efc1189ee4a8c (patch) | |
tree | dffa4eee585192d1402a6427bb087a7263cc399c /hcid/dbus-hci.c | |
parent | c6638ee5c399991f1496b213de64529fcd8556eb (diff) |
Registering device's object path
Diffstat (limited to 'hcid/dbus-hci.c')
-rw-r--r-- | hcid/dbus-hci.c | 5 |
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: |