We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if(r > LIBUSB_SUCCESS) { UsbDeviceWithSerial dev_with_serial; dev_with_serial.dev = dev; dev_with_serial.serial = std::string(reinterpret_cast<char *>(buffer), size_t(r)); LOG_INFO << "found valid Kinect v2 " << PrintBusAndDevice(dev) << " with serial " << dev_with_serial.serial; // valid Kinect v2 enumerated_devices_.push_back(dev_with_serial); continue; } else { libusb_unref_device(dev); LOG_ERROR << "failed to get serial number of Kinect v2: " << PrintBusAndDevice(dev, r); }
The "continue" found on line: 548 should not be there
because the: libusb_unref_device(dev); on line 563 needs to run
else there is a dangling reference and libusb > 1.0.25 asserts or >= 1.0.26 crashes
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The "continue" found on line: 548
should not be there
because the:
libusb_unref_device(dev);
on line 563 needs to run
else there is a dangling reference and libusb > 1.0.25 asserts or >= 1.0.26 crashes
The text was updated successfully, but these errors were encountered: