Diff between a645bd0747754b0b9d090782982e43e689690865 and f92eb1ef75834d8eb63be5416b158e8745c26476

Changed Files

File Additions Deletions Status
src/device.c +3 -0 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index 93b6626..05c1b1a 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1252,6 +1252,9 @@ static void dev_profile_connected(struct btd_profile *profile,
 		g_dbus_send_reply(btd_get_dbus_connection(), dev->connect,
 							DBUS_TYPE_INVALID);
 
+	g_slist_free(dev->pending);
+	dev->pending = NULL;
+
 	dbus_message_unref(dev->connect);
 	dev->connect = NULL;
 }