summaryrefslogtreecommitdiff
path: root/libgphoto2_port/libusb1/libusb1.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgphoto2_port/libusb1/libusb1.c')
-rw-r--r--libgphoto2_port/libusb1/libusb1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgphoto2_port/libusb1/libusb1.c b/libgphoto2_port/libusb1/libusb1.c
index c6a03dc5f..83d25ef4d 100644
--- a/libgphoto2_port/libusb1/libusb1.c
+++ b/libgphoto2_port/libusb1/libusb1.c
@@ -276,6 +276,7 @@ gp_port_usb_exit (GPPort *port)
port->pl = NULL;
}
if (gp_devs) libusb_free_device_list (gp_devs, 1);
+ gp_devs = NULL; gp_nrofdevs = 0;
free (gp_descs);
return (GP_OK);
}