CheckMemoryLeak: Bug fix.

This commit is contained in:
Daniel Marjamäki 2007-06-03 17:09:15 +00:00
parent 7a8ee64068
commit eade228c24
1 changed files with 18 additions and 9 deletions

View File

@ -84,19 +84,28 @@ void CheckMemoryLeak()
}
// if level..
if ( ! iflist.empty() )
{
if (iflist.back())
iflevel--;
iflist.pop_back();
}
// loop level..
if ( ! looplist.empty() )
{
if (looplist.back())
looplevel--;
looplist.pop_back();
}
// switch level..
if ( ! switchlist.empty() )
{
if (switchlist.back())
switchlevel--;
switchlist.pop_back();
}
// Make sure the varlist is empty..
if (indentlevel <= 1)