1
0
Fork 0
forked from len0rd/rockbox

regtools/qeditor: fix crash when hwstub device fails to open

Change-Id: Ica2fd201f2ae8ee63b1ae81f27433c841d2f22cd
This commit is contained in:
Amaury Pouly 2014-02-13 11:51:48 +01:00
parent c35e4a4b7d
commit 1210de217e

View file

@ -211,6 +211,7 @@ bool HWStubDevice::Open()
if(m_hwdev == 0)
{
libusb_close(m_handle);
m_handle = 0;
return false;
}
return true;