mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-26 04:36:01 +00:00
libusb: prevent crash on driver deinit when there are no pad connections
This commit is contained in:
parent
4cc7cad454
commit
34491a6025
@ -502,7 +502,8 @@ static void libusb_hid_free(void *data)
|
||||
sthread_join(hid->poll_thread);
|
||||
}
|
||||
|
||||
pad_connection_destroy(hid->slots);
|
||||
if (hid->slots)
|
||||
pad_connection_destroy(hid->slots);
|
||||
|
||||
libusb_hotplug_deregister_callback(hid->ctx, hid->hp);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user