kinect_upload_fw: release the interface when exiting
[kinect-audio-setup.git] / 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);