qbsp: free the leaks array after writing leak file
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
bd827266a8
commit
2bc8a01a31
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue