From 11ef32dfa99ea22f7af0770b3676e73529c43d3b Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 20 Feb 2007 16:25:15 +0000 Subject: [PATCH] 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 --- src/kits/app/Handler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/kits/app/Handler.cpp b/src/kits/app/Handler.cpp index 0e0bde92b9..9da37c39dc 100644 --- a/src/kits/app/Handler.cpp +++ b/src/kits/app/Handler.cpp @@ -688,6 +688,7 @@ ObserverList::_ValidateHandlers(uint32 what) continue; handlers.erase(iterator); + iterator--; Add(target, what); } }