mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-21 10:20:21 +00:00
stop threads before destroying pad_connections
This commit is contained in:
parent
3c67a80713
commit
730be95302
@ -466,11 +466,11 @@ static void libusb_hid_free(void *data)
|
||||
{
|
||||
libusb_hid_t *hid = (libusb_hid_t*)data;
|
||||
|
||||
pad_connection_destroy(hid->slots);
|
||||
|
||||
while(adapters.next)
|
||||
remove_adapter(hid, adapters.next->device);
|
||||
|
||||
pad_connection_destroy(hid->slots);
|
||||
|
||||
libusb_hotplug_deregister_callback(NULL, hid->hp);
|
||||
|
||||
libusb_exit(NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user