mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-28 19:34:29 +01:00
sys_usbd: Fix null pointer deref on destruction
This commit is contained in:
parent
a108ce8015
commit
7b212e0e57
|
|
@ -591,7 +591,8 @@ usb_handler_thread::~usb_handler_thread()
|
|||
}
|
||||
|
||||
#if LIBUSB_API_VERSION >= 0x01000102
|
||||
libusb_hotplug_deregister_callback(ctx, callback_handle);
|
||||
if (ctx && hotplug_supported)
|
||||
libusb_hotplug_deregister_callback(ctx, callback_handle);
|
||||
#endif
|
||||
|
||||
if (ctx)
|
||||
|
|
|
|||
Loading…
Reference in a new issue