From 028d551101a0680c46b8a3d83b4e6fba4fffad9d Mon Sep 17 00:00:00 2001 From: Jin Cheng Date: Tue, 20 Jun 2023 20:04:57 +0800 Subject: [PATCH] Fixed the issue of alarm leak in A2DP --- components/bt/host/bluedroid/bta/av/bta_av_act.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/bt/host/bluedroid/bta/av/bta_av_act.c b/components/bt/host/bluedroid/bta/av/bta_av_act.c index f7f3dc3fc0..13a5750713 100644 --- a/components/bt/host/bluedroid/bta/av/bta_av_act.c +++ b/components/bt/host/bluedroid/bta/av/bta_av_act.c @@ -1861,8 +1861,8 @@ void bta_av_dereg_comp(tBTA_AV_DATA *p_data) bta_sys_remove_uuid(UUID_SERVCLASS_VIDEO_SOURCE); } - /* make sure that the timer is not active */ - bta_sys_stop_timer(&p_scb->timer); + /* free the delay timer for AVRC CT */ + bta_sys_free_timer(&p_scb->timer); list_free(p_scb->a2d_list); p_scb->a2d_list = NULL; utl_freebuf((void **)&p_cb->p_scb[p_scb->hdi]);