From f92eb1ef75834d8eb63be5416b158e8745c26476 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 26 Nov 2012 14:14:56 +0200 Subject: [PATCH] core: Fix cleaning up pending connect list if a profile fails --- src/device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/device.c b/src/device.c index 93b662687..05c1b1a26 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; } -- 2.47.3