mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 21:35:16 +00:00
hfp: free hfp connection struct on disconnect
This commit is contained in:
parent
671c66c199
commit
09a233a15f
@ -358,7 +358,8 @@ static hfp_connection_t * create_hfp_connection_context(void){
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void remove_hfp_connection_context(hfp_connection_t * hfp_connection){
|
static void remove_hfp_connection_context(hfp_connection_t * hfp_connection){
|
||||||
btstack_linked_list_remove(&hfp_connections, (btstack_linked_item_t*) hfp_connection);
|
btstack_linked_list_remove(&hfp_connections, (btstack_linked_item_t*) hfp_connection);
|
||||||
|
btstack_memory_hfp_connection_free(hfp_connection);
|
||||||
}
|
}
|
||||||
|
|
||||||
static hfp_connection_t * provide_hfp_connection_context_for_bd_addr(bd_addr_t bd_addr){
|
static hfp_connection_t * provide_hfp_connection_context_for_bd_addr(bd_addr_t bd_addr){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user