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 hf-ag
This commit is contained in:
parent
028d551101
commit
28747f432f
@ -461,11 +461,11 @@ void bta_ag_scb_dealloc(tBTA_AG_SCB *p_scb)
|
|||||||
|
|
||||||
APPL_TRACE_DEBUG("bta_ag_scb_dealloc %d", bta_ag_scb_to_idx(p_scb));
|
APPL_TRACE_DEBUG("bta_ag_scb_dealloc %d", bta_ag_scb_to_idx(p_scb));
|
||||||
/* stop timers */
|
/* stop timers */
|
||||||
bta_sys_stop_timer(&p_scb->act_timer);
|
bta_sys_free_timer(&p_scb->act_timer);
|
||||||
#if (BTM_WBS_INCLUDED == TRUE)
|
#if (BTM_WBS_INCLUDED == TRUE)
|
||||||
bta_sys_stop_timer(&p_scb->cn_timer);
|
bta_sys_free_timer(&p_scb->cn_timer);
|
||||||
#endif
|
#endif
|
||||||
bta_sys_stop_timer(&p_scb->colli_timer);
|
bta_sys_free_timer(&p_scb->colli_timer);
|
||||||
|
|
||||||
/* initialize control block */
|
/* initialize control block */
|
||||||
memset(p_scb, 0, sizeof(tBTA_AG_SCB));
|
memset(p_scb, 0, sizeof(tBTA_AG_SCB));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user