diff options
author | Josh Blum <josh@joshknows.com> | 2010-09-24 18:14:32 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-09-24 18:14:32 -0700 |
commit | 1dffd5bb5fe16cd35ba54e44e927888e0192e905 (patch) | |
tree | 08da412307cd9aecb885671035db5b8b68eb2978 /host/lib/transport/libusb1_control.cpp | |
parent | f2f4840ff9e15ed21344a5a19d676d548b542e91 (diff) | |
download | uhd-1dffd5bb5fe16cd35ba54e44e927888e0192e905.tar.gz uhd-1dffd5bb5fe16cd35ba54e44e927888e0192e905.tar.bz2 uhd-1dffd5bb5fe16cd35ba54e44e927888e0192e905.zip |
usb: tweaks to usb code to cleanup properly and/or in error conditions
Diffstat (limited to 'host/lib/transport/libusb1_control.cpp')
-rw-r--r-- | host/lib/transport/libusb1_control.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/transport/libusb1_control.cpp b/host/lib/transport/libusb1_control.cpp index 3531128b2..be9b51111 100644 --- a/host/lib/transport/libusb1_control.cpp +++ b/host/lib/transport/libusb1_control.cpp @@ -46,6 +46,7 @@ private: libusb_control_impl::libusb_control_impl(usb_device_handle::sptr handle) { + _ctx = NULL; libusb::init(&_ctx, libusb_debug_level); // Find and open the libusb_device corresponding to the |