From da0e7105811dc046d13d0365404efc1189ee4a8c Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Fri, 7 Mar 2008 17:53:50 +0000 Subject: Registering device's object path --- hcid/dbus-hci.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hcid/dbus-hci.c') 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: -- cgit