From 034bf368cc33646cb39f15876f3d0d69c0e54303 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 29 Jan 2014 10:28:01 -0800 Subject: audio/AVRCP: Fix not freeing pending_pdu if session is detroyed This fixes possibly leaking pending_pdu if the session is destroyed. --- profiles/audio/avrcp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'profiles/audio') diff --git a/profiles/audio/avrcp.c b/profiles/audio/avrcp.c index d6f72ac20..fa5adabf4 100644 --- a/profiles/audio/avrcp.c +++ b/profiles/audio/avrcp.c @@ -3497,6 +3497,8 @@ static void session_destroy(struct avrcp *session) server->sessions = g_slist_remove(server->sessions, session); + session_abort_pending_pdu(session); + if (session->browsing_timer > 0) g_source_remove(session->browsing_timer); -- cgit v1.2.1