在析构函数中释放智能型指针,程序退出卡主问题
This commit is contained in:
parent
0f21325c8d
commit
72e9dd0078
|
@ -114,6 +114,7 @@ CScanner_FreeImage::CScanner_FreeImage() :
|
|||
//////////////////////////////////////////////////////////////////////////////
|
||||
CScanner_FreeImage::~CScanner_FreeImage()
|
||||
{
|
||||
g_scan.reset();
|
||||
}
|
||||
|
||||
void CScanner_FreeImage::InitMSGMap()
|
||||
|
@ -174,6 +175,7 @@ bool CScanner_FreeImage::acquireImage(bool bscan)
|
|||
if (getDeviceOnline())
|
||||
{
|
||||
g_scan->config_params(*(getSetting()));
|
||||
g_scan->setdecodepixtype(m_HardWareParams.PixType);
|
||||
g_scan->Scanner_StartScan(m_wScanCount);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue