Skip to content

Commit

Permalink
Do heap checks in debug builds only.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 20, 2006
1 parent f2ba110 commit fbddcb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doomsday/engine/portable/src/r_world.c
Expand Up @@ -1108,14 +1108,18 @@ void R_InitSubsectorInfo(void)
#endif
subsecinfo = Z_Calloc(i, PU_LEVEL, NULL);

#ifdef _DEBUG
Z_CheckHeap();
#endif

for(i = 0, info = subsecinfo; i < numsubsectors; i++, info++)
{
R_InitPlanePolys(SUBSECTOR_PTR(i));
}

#ifdef _DEBUG
Z_CheckHeap();
#endif
}

/*
Expand Down

0 comments on commit fbddcb1

Please sign in to comment.