kinect_upload_fw: release the interface when exiting
authorAntonio Ospite <ao2@ao2.it>
Tue, 5 Jan 2016 20:54:05 +0000 (21:54 +0100)
committerAntonio Ospite <ao2@ao2.it>
Tue, 5 Jan 2016 20:54:05 +0000 (21:54 +0100)
kinect_upload_fw/kinect_upload_fw.c

index 54f463a..5faf8e1 100644 (file)
@@ -259,6 +259,7 @@ int main(int argc, char** argv) {
        // Now the device reenumerates.
 
 cleanup:
+       libusb_release_interface(dev, KINECT_AUDIO_INTERFACE);
        libusb_close(dev);
 fail_libusb_open:
        libusb_exit(NULL);