Skip to content

Commit

Permalink
Cleanup leaks in floodbucket
Browse files Browse the repository at this point in the history
refs #3395
  • Loading branch information
vexed committed Apr 24, 2012
1 parent 62da559 commit 3228514
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,7 @@ bool mapShutdown(void)
free(psBlockMap[AUX_ASTARMAP]);
psBlockMap[AUX_ASTARMAP] = NULL;
free(psBlockMap[AUX_DANGERMAP]);
free(floodbucket);
psBlockMap[AUX_DANGERMAP] = NULL;
for (x = 0; x < MAX_PLAYERS + AUX_MAX; x++)
{
Expand All @@ -1071,6 +1072,7 @@ bool mapShutdown(void)
}

map = NULL;
floodbucket = NULL;
psGroundTypes = NULL;
mapDecals = NULL;
psMapTiles = NULL;
Expand Down

0 comments on commit 3228514

Please sign in to comment.