erase() shrinks the vector, so we decrement the handler. Fixes the crash in case there are invalid handlers (Time application, for example). Should be fixed in the other _SendNotices() call too ?

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20183 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2007-02-20 16:25:15 +00:00
parent e44561b2e9
commit 11ef32dfa9

View File

@ -688,6 +688,7 @@ ObserverList::_ValidateHandlers(uint32 what)
continue;
handlers.erase(iterator);
iterator--;
Add(target, what);
}
}