SystemProfiler::EventOccurred(): We must not access the object after

releasing our reference to it. So return immediately after having done that.
Previously the _MaybeNotifyProfilerThread() that innocently lurked at the end
of the method would be invoked, playing with the dead beef.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35357 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-01-31 13:53:10 +00:00
parent 8d9e64aeb2
commit 9e4087372b
1 changed files with 3 additions and 2 deletions

View File

@ -612,9 +612,10 @@ SystemProfiler::EventOccurred(NotificationService& service,
locker.Unlock();
RemoveReference();
} else
_TeamRemoved(team);
return;
}
_TeamRemoved(team);
break;
case TEAM_EXEC: