mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
Only free the list if libusb_get_device_list succeeded
This commit is contained in:
parent
4594148409
commit
e0d501124f
1 changed files with 2 additions and 1 deletions
|
@ -184,6 +184,7 @@ usb_handler_thread::usb_handler_thread()
|
||||||
check_device(0x044F, 0xB660, 0xB660, "Thrustmaster T500 RS Gear Shift");
|
check_device(0x044F, 0xB660, 0xB660, "Thrustmaster T500 RS Gear Shift");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ndev > 0)
|
||||||
libusb_free_device_list(list, 1);
|
libusb_free_device_list(list, 1);
|
||||||
|
|
||||||
if (!found_skylander)
|
if (!found_skylander)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue