mirror of
https://github.com/mangosfour/server.git
synced 2025-12-28 13:37:13 +00:00
[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:
parent
4a684fe630
commit
21a3ee9267
28 changed files with 80 additions and 160 deletions
|
|
@ -81,8 +81,7 @@ class ReactorRunnable : protected ACE_Task_Base
|
|||
Stop();
|
||||
Wait();
|
||||
|
||||
if (m_Reactor)
|
||||
delete m_Reactor;
|
||||
delete m_Reactor;
|
||||
}
|
||||
|
||||
void Stop()
|
||||
|
|
@ -216,11 +215,8 @@ WorldSocketMgr::WorldSocketMgr():
|
|||
|
||||
WorldSocketMgr::~WorldSocketMgr()
|
||||
{
|
||||
if (m_NetThreads)
|
||||
delete [] m_NetThreads;
|
||||
|
||||
if (m_Acceptor)
|
||||
delete m_Acceptor;
|
||||
delete[] m_NetThreads;
|
||||
delete m_Acceptor;
|
||||
}
|
||||
|
||||
int WorldSocketMgr::StartReactiveIO(ACE_UINT16 port, const char* address)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue