mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-02 13:14:04 +00:00
hci: stop timer on deinit
This commit is contained in:
parent
cf78f0053e
commit
b02cfc15b9
@ -3844,6 +3844,7 @@ void hci_init(const hci_transport_t *transport, const void *config){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void hci_deinit(void){
|
void hci_deinit(void){
|
||||||
|
btstack_run_loop_remove_timer(&hci_stack->timeout);
|
||||||
#ifdef HAVE_MALLOC
|
#ifdef HAVE_MALLOC
|
||||||
if (hci_stack) {
|
if (hci_stack) {
|
||||||
free(hci_stack);
|
free(hci_stack);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user