Fix a crash in for BT HID devices. (#14922)
pad_connection_destroy() frees slots, no need to free it again.
This commit is contained in:
parent
e5ba7b9d2f
commit
2946e6704b
|
@ -1455,7 +1455,6 @@ static void btstack_hid_free(const void *data)
|
|||
btpad_set_inquiry_state(true);
|
||||
btstack_set_poweron(false);
|
||||
|
||||
free(slots);
|
||||
if (hid)
|
||||
free(hid);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue