forked from len0rd/rockbox
Don't close libusb device handle if opening failed.
This issue has been pointed out as FS#11420. Redone by myself because the change is trivial and the submitter didn't state his real name. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27061 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
09db2ae203
commit
e7a536bc1d
1 changed files with 1 additions and 1 deletions
|
|
@ -297,8 +297,8 @@ QMap<uint32_t, QString> System::listUsbDevices(void)
|
|||
if(res > 0)
|
||||
name += QString::fromAscii(string);
|
||||
}
|
||||
usb_close(dev);
|
||||
}
|
||||
usb_close(dev);
|
||||
if(name.isEmpty()) name = tr("(no description available)");
|
||||
|
||||
if(id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue