libusb_submit_transfer: Don't reference the device on submission failure
authorHans de Goede <hdegoede@redhat.com>
Fri, 30 May 2014 10:25:18 +0000 (12:25 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 30 May 2014 10:37:37 +0000 (12:37 +0200)
commit6edd96ab818fab9a35efa385b489b9a56ca91dbc
treecd9b690de03ccd9ca34f25968dd647b2dd298034
parent4f347f01fa2745b7d00e6e336726c9a329bd6fbb
libusb_submit_transfer: Don't reference the device on submission failure

If submission fails libusb_ref_device will never get balanced by an unref
on completion, since there will be no completion.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
libusb/io.c
libusb/version_nano.h