mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-25 18:35:17 +00:00
avdtp: free stream endpoints and connection on l2cap close
This commit is contained in:
parent
47ec446b23
commit
671c66c199
@ -556,8 +556,9 @@ void avdtp_packet_handler(uint8_t packet_type, uint16_t channel, uint8_t *packet
|
||||
btstack_linked_list_iterator_init(&it, stream_endpoints);
|
||||
while (btstack_linked_list_iterator_has_next(&it)){
|
||||
avdtp_stream_endpoint_t * _stream_endpoint = (avdtp_stream_endpoint_t *)btstack_linked_list_iterator_next(&it);
|
||||
avdtp_initialize_stream_endpoint(_stream_endpoint);
|
||||
btstack_memory_avdtp_stream_endpoint_free(_stream_endpoint);
|
||||
}
|
||||
btstack_memory_avdtp_connection_free(connection);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user