|
|
@@ -974,8 +974,8 @@ struct ITransactionContext
|
|
|
class CEntityBase
|
|
|
{
|
|
|
public:
|
|
|
- CEntityBase():m_pEntityFunction(NULL) {}
|
|
|
- virtual ~CEntityBase() { delete m_pEntityFunction; }
|
|
|
+ CEntityBase():m_pEntityFunction(nullptr) {}
|
|
|
+ virtual ~CEntityBase() { if(m_pEntityFunction != nullptr) delete m_pEntityFunction; }
|
|
|
|
|
|
/** get entity service function */
|
|
|
CSmartPointer<IEntityFunction> GetFunction() { return m_pEntityFunction; }
|