mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 20:22:30 +01:00
sys_usbd: fix usb handler deinitialization
This commit is contained in:
parent
9a91fef337
commit
4fbbdf8732
@ -352,14 +352,14 @@ usb_handler_thread::~usb_handler_thread()
|
||||
open_pipes.clear();
|
||||
usb_devices.clear();
|
||||
|
||||
if (ctx)
|
||||
libusb_exit(ctx);
|
||||
|
||||
for (u32 index = 0; index < MAX_SYS_USBD_TRANSFERS; index++)
|
||||
{
|
||||
if (transfers[index].transfer)
|
||||
libusb_free_transfer(transfers[index].transfer);
|
||||
}
|
||||
|
||||
if (ctx)
|
||||
libusb_exit(ctx);
|
||||
}
|
||||
|
||||
void usb_handler_thread::operator()()
|
||||
|
Loading…
Reference in New Issue
Block a user