hfp: remove timer on finalize context

This commit is contained in:
Milanka Ringwald 2021-04-13 11:25:21 +02:00
parent 13ee9fd7ed
commit 78a72d5e81

View File

@ -510,6 +510,7 @@ static hfp_connection_t * create_hfp_connection_context(void){
}
void hfp_finalize_connection_context(hfp_connection_t * hfp_connection){
btstack_run_loop_remove_timer(&hfp_connection->hfp_timeout);
btstack_linked_list_remove(&hfp_connections, (btstack_linked_item_t*) hfp_connection);
btstack_memory_hfp_connection_free(hfp_connection);
}