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:
Machiavelli committed 2010-06-21 23:20:58 +02:00
1 parent 5c86cc2aee
commit 95ddfbd9e2
19 files changed
+47 -94

No files matched your search

+1 -2
View File
@@ -120,8 +120,7 @@ m_LastPingTime(ACE_Time_Value::zero)
WorldSocket::~WorldSocket (void)
{
if (m_RecvWPct)
delete m_RecvWPct;
delete m_RecvWPct;
if (m_OutBuffer)
m_OutBuffer->release();