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
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user