summaryrefslogtreecommitdiffstats
path: root/utils/regtools/qeditor/backend.cpp
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-02-13 11:51:48 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-02-13 11:51:48 +0100
commit1210de217ebdbd35734f57d82a6e935ef60e6555 (patch)
treec1e9a5dce13cf92b003cdeabae5e9e253e93daf7 /utils/regtools/qeditor/backend.cpp
parentc35e4a4b7d7c4da06f0f38f6f669f05d04f4537a (diff)
downloadrockbox-1210de217ebdbd35734f57d82a6e935ef60e6555.tar.gz
rockbox-1210de217ebdbd35734f57d82a6e935ef60e6555.tar.bz2
rockbox-1210de217ebdbd35734f57d82a6e935ef60e6555.zip
regtools/qeditor: fix crash when hwstub device fails to open
Change-Id: Ica2fd201f2ae8ee63b1ae81f27433c841d2f22cd
Diffstat (limited to 'utils/regtools/qeditor/backend.cpp')
-rw-r--r--utils/regtools/qeditor/backend.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/regtools/qeditor/backend.cpp b/utils/regtools/qeditor/backend.cpp
index 15867821e3..eebda31989 100644
--- a/utils/regtools/qeditor/backend.cpp
+++ b/utils/regtools/qeditor/backend.cpp
@@ -211,6 +211,7 @@ bool HWStubDevice::Open()
if(m_hwdev == 0)
{
libusb_close(m_handle);
+ m_handle = 0;
return false;
}
return true;