[12079] Remove some redundant explicit NULL checks for pointers before delete or delete[] calls since this check is done implicitly when deleting

Signed-off-by: stfx <stfx@hotmail.de>
This commit is contained in:
Machiavelli 2012-08-03 14:29:04 +02:00 committed by stfx
parent 4a684fe630
commit 21a3ee9267
28 changed files with 80 additions and 160 deletions

View file

@ -71,13 +71,8 @@ Object::~Object()
MANGOS_ASSERT(false);
}
if (m_uint32Values)
{
// DEBUG_LOG("Object desctr 1 check (%p)",(void*)this);
delete [] m_uint32Values;
delete [] m_uint32Values_mirror;
// DEBUG_LOG("Object desctr 2 check (%p)",(void*)this);
}
delete[] m_uint32Values;
delete[] m_uint32Values_mirror;
}
void Object::_InitValues()