mirror of https://github.com/encounter/SDL.git
hidapi, libusb: import mainstream commit 536bad201e
This commit is contained in:
parent
fa073ed01a
commit
7a5743031d
|
@ -1497,6 +1497,7 @@ void HID_API_EXPORT hid_close(hid_device *dev)
|
||||||
|
|
||||||
/* Clean up the Transfer objects allocated in read_thread(). */
|
/* Clean up the Transfer objects allocated in read_thread(). */
|
||||||
free(dev->transfer->buffer);
|
free(dev->transfer->buffer);
|
||||||
|
dev->transfer->buffer = NULL;
|
||||||
libusb_free_transfer(dev->transfer);
|
libusb_free_transfer(dev->transfer);
|
||||||
|
|
||||||
/* release the interface */
|
/* release the interface */
|
||||||
|
|
Loading…
Reference in New Issue