mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
- Fixed: When the game nodes were the same as the render nodes, their pointers would not be NULLed.
SVN r2676 (trunk)
This commit is contained in:
parent
81e21b0688
commit
092cbfd55b
1 changed files with 8 additions and 10 deletions
|
@ -3370,17 +3370,13 @@ void P_FreeLevelData ()
|
|||
sectors = NULL;
|
||||
numsectors = 0; // needed for the pointer cleanup code
|
||||
}
|
||||
if (gamenodes && gamenodes!=nodes)
|
||||
if (gamenodes != NULL && gamenodes != nodes)
|
||||
{
|
||||
delete [] gamenodes;
|
||||
gamenodes = NULL;
|
||||
numgamenodes = 0;
|
||||
delete[] gamenodes;
|
||||
}
|
||||
if (gamesubsectors && gamesubsectors!=subsectors)
|
||||
if (gamesubsectors != NULL && gamesubsectors != subsectors)
|
||||
{
|
||||
delete [] gamesubsectors;
|
||||
gamesubsectors = NULL;
|
||||
numgamesubsectors = 0;
|
||||
delete[] gamesubsectors;
|
||||
}
|
||||
if (subsectors != NULL)
|
||||
{
|
||||
|
@ -3392,13 +3388,15 @@ void P_FreeLevelData ()
|
|||
}
|
||||
}
|
||||
delete[] subsectors;
|
||||
subsectors = NULL;
|
||||
}
|
||||
if (nodes != NULL)
|
||||
{
|
||||
delete[] nodes;
|
||||
nodes = NULL;
|
||||
}
|
||||
subsectors = gamesubsectors = NULL;
|
||||
numsubsectors = numgamesubsectors = 0;
|
||||
nodes = gamenodes = NULL;
|
||||
numnodes = numgamenodes = 0;
|
||||
if (lines != NULL)
|
||||
{
|
||||
delete[] lines;
|
||||
|
|
Loading…
Reference in a new issue