diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2008-08-22 16:41:22 -0300 |
---|---|---|
committer | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2008-08-25 17:05:23 -0300 |
commit | ad0f427712ed463b7c36c2472664eedd91c94344 (patch) | |
tree | 163858bbcf9d606c59a3c5d6052ae480931e9418 /serial | |
parent | 02dacdc326c29386bbae2574212ff029974444e7 (diff) | |
download | bluez-ad0f427712ed463b7c36c2472664eedd91c94344.tar.gz |
Fixing some invalid reads when removing multiple adapters.
Diffstat (limited to 'serial')
-rw-r--r-- | serial/proxy.c | 2 |
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); |