Remove some redundant explicit NULL checks for pointers before ´delete´ or ´delete[]´ calls since this check is done implicitly when deleting.
Also fixes a memory leak in .reload creature_template command --HG-- branch : trunk
This commit is contained in:
1 parent
5c86cc2aee
commit
95ddfbd9e2
19 files changed
+47
-94
No files matched your search
@@ -113,13 +113,9 @@ Object::~Object()
|
||||
ObjectAccessor::Instance().RemoveUpdateObject(this);
|
||||
}
|
||||
|
||||
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()
|
||||
|
||||
Reference in new issue
Block a user