Diff between f752bac2428ff3f5749c934cbd9e416f19796b2f and c9a1ed86b775d2812baffe1f9393698b1182bca2
Changed Files
| File | Additions | Deletions | Status |
| src/profile.c | +6 | -2 | modified |
Full Patch
diff --git a/src/profile.c b/src/profile.c
index ba9ce6c..b21db4c 100644
--- a/src/profile.c
+++ b/src/profile.c
@@ -437,13 +437,17 @@ void btd_profile_cleanup(void)
DBG("Releasing \"%s\"", ext->name);
- g_dbus_remove_watch(conn, ext->id);
- remove_ext(ext);
+ g_slist_free_full(ext->conns, ext_io_destroy);
+ ext->conns = NULL;
msg = dbus_message_new_method_call(ext->owner, ext->path,
"org.bluez.Profile",
"Release");
if (msg)
g_dbus_send_message(conn, msg);
+
+ g_dbus_remove_watch(conn, ext->id);
+ remove_ext(ext);
+
}
}