mirror of
https://github.com/RPCS3/libusb.git
synced 2026-07-19 21:03:32 -04:00
Windows: Fix regression introduced by 05b0b55b
Closes #298, Closes #300 Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
This commit is contained in:
@@ -244,8 +244,10 @@ static inline void windows_device_priv_release(struct libusb_device *dev)
|
||||
int i;
|
||||
|
||||
free(p->path);
|
||||
for (i = 0; i < dev->num_configurations; i++)
|
||||
free(p->config_descriptor[i]);
|
||||
if ((dev->num_configurations > 0) && (p->config_descriptor != NULL)) {
|
||||
for (i = 0; i < dev->num_configurations; i++)
|
||||
free(p->config_descriptor[i]);
|
||||
}
|
||||
free(p->config_descriptor);
|
||||
free(p->hid);
|
||||
for (i = 0; i < USB_MAXINTERFACES; i++) {
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11197
|
||||
#define LIBUSB_NANO 11198
|
||||
|
||||
Reference in New Issue
Block a user