summaryrefslogtreecommitdiff
path: root/serial
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2008-08-22 16:41:22 -0300
committerVinicius Costa Gomes <vinicius.gomes@openbossa.org>2008-08-25 17:05:23 -0300
commitad0f427712ed463b7c36c2472664eedd91c94344 (patch)
tree163858bbcf9d606c59a3c5d6052ae480931e9418 /serial
parent02dacdc326c29386bbae2574212ff029974444e7 (diff)
downloadbluez-ad0f427712ed463b7c36c2472664eedd91c94344.tar.gz
Fixing some invalid reads when removing multiple adapters.
Diffstat (limited to 'serial')
-rw-r--r--serial/proxy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/serial/proxy.c b/serial/proxy.c
index 88c517a08..d779d848f 100644
--- a/serial/proxy.c
+++ b/serial/proxy.c
@@ -1009,6 +1009,8 @@ static void manager_path_unregister(void *data)
if (adapter->conn)
dbus_connection_unref(adapter->conn);
+
+ adapters = g_slist_remove(adapters, adapter);
g_slist_free(adapter->proxies);
g_free(adapter->path);
g_free(adapter);