hidapi, libusb: import mainstream commit 536bad201e

This commit is contained in:
Ozkan Sezer 2022-04-23 20:01:40 +03:00
parent fa073ed01a
commit 7a5743031d
1 changed files with 1 additions and 0 deletions

View File

@ -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 */