* When freeing global pointers set them to NULL (patch by vs2k5)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1521 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
c3713f7cf5
commit
b45388b30a
|
@ -130,6 +130,7 @@ void gwShutDown(void)
|
|||
if (aZoneReachable != NULL)
|
||||
{
|
||||
free(aZoneReachable);
|
||||
aZoneReachable = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1058,7 +1059,9 @@ void gwFreeEquivTable(void)
|
|||
if (aNumEquiv)
|
||||
{
|
||||
free(aNumEquiv);
|
||||
aNumEquiv = NULL;
|
||||
}
|
||||
|
||||
if (apEquivZones)
|
||||
{
|
||||
for(i=0; i<gwNumZones; i+=1)
|
||||
|
@ -1069,6 +1072,7 @@ void gwFreeEquivTable(void)
|
|||
}
|
||||
}
|
||||
free(apEquivZones);
|
||||
apEquivZones = NULL;
|
||||
}
|
||||
gwNumZones = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue