1
0
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:
Egor Romanovskiy 2023-01-22 20:25:43 +03:00 committed by Megamouse
parent 9a91fef337
commit 4fbbdf8732

View File

@ -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()()