summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-06-22 20:13:39 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-06-22 20:13:39 +0000
commite7a536bc1d52ce234a25c0f7ef68270eb83283d3 (patch)
treebca129ddd9d254d69715c537a72328d3ca76b6d5 /rbutil
parent09db2ae2038c21fa3fd9fbbdb47d980af038a2af (diff)
downloadrockbox-e7a536bc1d52ce234a25c0f7ef68270eb83283d3.tar.gz
rockbox-e7a536bc1d52ce234a25c0f7ef68270eb83283d3.tar.bz2
rockbox-e7a536bc1d52ce234a25c0f7ef68270eb83283d3.zip
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
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/base/system.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/system.cpp b/rbutil/rbutilqt/base/system.cpp
index 2bc0764b8b..61a5b95cde 100644
--- a/rbutil/rbutilqt/base/system.cpp
+++ b/rbutil/rbutilqt/base/system.cpp
@@ -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) {