qbsp: free the leaks array after writing leak file

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-03-06 11:32:04 +10:30
parent bd827266a8
commit 2bc8a01a31
1 changed files with 1 additions and 0 deletions

View File

@ -499,6 +499,7 @@ FillOutside(node_t *node, const int hullnum, const int numportals)
fprintf(PorFile, "%11i", fillstate.bspleak.numportals);
fclose(PorFile);
}
FreeMem(fillstate.bspleak.leaks, OTHER, sizeof(portal_t *) * numportals);
map.leakfile = true;
// Get rid of .prt file if .pts file is generated