退出时,释放USB监视器对象中的USB设备对象
This commit is contained in:
parent
d3af46fefa
commit
caf88fadcc
|
@ -1217,6 +1217,12 @@ void usb_monitor::quit(void)
|
|||
{
|
||||
PostMessage(wnd_monitor_, WM_QUIT, 0, 0);
|
||||
}
|
||||
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(lock_);
|
||||
for (auto& v : devices_)
|
||||
v->release();
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in New Issue