* 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-861f7616d084
master
Giel van Schijndel 2007-04-22 21:47:06 +00:00
parent c3713f7cf5
commit b45388b30a
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}