mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +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
|
|
@ -48,11 +48,8 @@ Map::~Map()
|
|||
if (m_persistentState)
|
||||
m_persistentState->SetUsedByMapState(NULL); // field pointer can be deleted after this
|
||||
|
||||
if (i_data)
|
||||
{
|
||||
delete i_data;
|
||||
i_data = NULL;
|
||||
}
|
||||
delete i_data;
|
||||
i_data = NULL;
|
||||
|
||||
// unload instance specific navigation data
|
||||
MMAP::MMapFactory::createOrGetMMapManager()->unloadMapInstance(m_TerrainData->GetMapId(), GetInstanceId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue