avoid crash due to null pointer in profiler (triggered by returning from the root node)
This was SVN commit r8966.
This commit is contained in:
parent
8f59d52697
commit
a155809447
@ -653,7 +653,11 @@ void CProfileManager::StartScript( const char* name )
|
||||
void CProfileManager::Stop()
|
||||
{
|
||||
if( current->Return() )
|
||||
{
|
||||
// (jw: for reasons unknown, current == root when called from main.cpp:293)
|
||||
if(current != root)
|
||||
current = current->GetParent();
|
||||
}
|
||||
}
|
||||
|
||||
void CProfileManager::Reset()
|
||||
|
Loading…
Reference in New Issue
Block a user