CheckMemoryLeak: Bug fix.
This commit is contained in:
parent
7a8ee64068
commit
eade228c24
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue