commit | a5624b22267ec0e146825d3fe94d9e4b2f5ae503 | [log] [tgz] |
---|---|---|
author | Chris Dickens <christopher.a.dickens@gmail.com> | Mon Jan 13 15:05:00 2020 -0800 |
committer | Chris Dickens <christopher.a.dickens@gmail.com> | Mon Jan 13 15:05:00 2020 -0800 |
tree | 5b6cc661ea91ee0156fc948dde0ae9e3ef9702e6 | |
parent | dbd4991a2478ae57e39347bf8610e636554e4c1f [diff] |
core: Do not attempt to destroy a default context that doesn't exist Calling libusb_exit(NULL) when a successful call to libusb_init(NULL) has not been made results in a segmentation violation. This is definitely a user error, but we can easily guard against it. Closes #511 Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD and Haiku userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).
libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information.
libusb homepage: http://libusb.info/
Developers will wish to consult the API documentation: http://api.libusb.info
Use the mailing list for questions, comments, etc: http://mailing-list.libusb.info
(Please use the mailing list rather than mailing developers directly)