Prechádzať zdrojové kódy

#IQRV #comment [Module] FingertPrint::SafeDelete

gifur 4 rokov pred
rodič
commit
d4fc7684b6

+ 2 - 4
Module/mod_CustMngrAuth/CustMngrAuthFSM.cpp

@@ -243,8 +243,7 @@ unsigned int CCustMngrAuthFSM::s3_on_event(FSMEvent* pEvt)
 		{
 			m_bCancelAuthorize = true;
 			m_pFingerPrint->GetFunction()->CloseSession();
-			//m_pFingerPrint->SafeDelete();
-			//m_pFingerPrint = NULL;
+			m_pFingerPrint = NULL;
 		}
 
 		m_authCtx.eAuthByWhich = AuthByNone;
@@ -385,8 +384,7 @@ ErrorCodeEnum CCustMngrAuthFSM::SwitchUSB(bool bOpen)
 
 			m_pDeviceControl->GetFunction()->CloseSession();
 		}
-		//m_pDeviceControl->SafeDelete();
-		//m_pDeviceControl = NULL;
+		m_pDeviceControl = NULL;
 		return errCode;
 	}
 	else {

+ 0 - 5
Module/mod_FingerPrint/FingerPrintFSM.cpp

@@ -1060,11 +1060,6 @@ ErrorCodeEnum CFingerPrintFSM::CheckCardSwiperStatus()
 		}
 		pCardSwiperClient->GetFunction()->CloseSession();
 	}
-	/*if (pCardSwiperClient != NULL)
-	{
-		pCardSwiperClient->SafeDelete();
-		pCardSwiperClient = NULL;
-	}*/
 
 	return errCode;
 }