mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +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;
|
libusb_hid_t *hid = (libusb_hid_t*)data;
|
||||||
|
|
||||||
pad_connection_destroy(hid->slots);
|
|
||||||
|
|
||||||
while(adapters.next)
|
while(adapters.next)
|
||||||
remove_adapter(hid, adapters.next->device);
|
remove_adapter(hid, adapters.next->device);
|
||||||
|
|
||||||
|
pad_connection_destroy(hid->slots);
|
||||||
|
|
||||||
libusb_hotplug_deregister_callback(NULL, hid->hp);
|
libusb_hotplug_deregister_callback(NULL, hid->hp);
|
||||||
|
|
||||||
libusb_exit(NULL);
|
libusb_exit(NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user