mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Fixed the issue of alarm leak in A2DP
This commit is contained in:
parent
af8c1d7cff
commit
68c9a492ac
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user