mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
sys_usbd: Fix null pointer deref on destruction
Some checks failed
Generate Translation Template / Generate Translation Template (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ubuntu-24.04 gcc (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ubuntu-24.04-arm clang (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ubuntu-24.04 clang (push) Has been cancelled
Build RPCS3 / RPCS3 Windows (push) Has been cancelled
Some checks failed
Generate Translation Template / Generate Translation Template (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ubuntu-24.04 gcc (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ubuntu-24.04-arm clang (push) Has been cancelled
Build RPCS3 / RPCS3 Linux ubuntu-24.04 clang (push) Has been cancelled
Build RPCS3 / RPCS3 Windows (push) Has been cancelled
This commit is contained in:
parent
a108ce8015
commit
7b212e0e57
1 changed files with 2 additions and 1 deletions
|
@ -591,7 +591,8 @@ usb_handler_thread::~usb_handler_thread()
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LIBUSB_API_VERSION >= 0x01000102
|
#if LIBUSB_API_VERSION >= 0x01000102
|
||||||
libusb_hotplug_deregister_callback(ctx, callback_handle);
|
if (ctx && hotplug_supported)
|
||||||
|
libusb_hotplug_deregister_callback(ctx, callback_handle);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (ctx)
|
if (ctx)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue