It's perfectly safe to delete NULL pointers, so simplify things by
removing these checks.
CSecurityStack::~CSecurityStack()
{
- if (state0)
- delete state0;
- if (state1)
- delete state1;
+ delete state0;
+ delete state1;
}
bool CSecurityStack::processMsg()
CSecurityVeNCrypt::~CSecurityVeNCrypt()
{
- if (availableTypes)
- delete[] availableTypes;
+ delete[] availableTypes;
}
bool CSecurityVeNCrypt::processMsg()
SSecurityStack::~SSecurityStack()
{
- if (state0)
- delete state0;
- if (state1)
- delete state1;
+ delete state0;
+ delete state1;
}
bool SSecurityStack::processMsg()
SSecurityVeNCrypt::~SSecurityVeNCrypt()
{
delete ssecurity;
-
- if (subTypes) {
- delete [] subTypes;
- subTypes = NULL;
- }
+ delete [] subTypes;
}
bool SSecurityVeNCrypt::processMsg()