From fe37c59940d81db6f95b842da1b14b67cb9451d6 Mon Sep 17 00:00:00 2001 From: Alexei Arabadji Date: Mon, 18 Jan 2010 16:28:24 +0200 Subject: =?UTF-8?q?fixed=20EXT-4382=20=E2=80=9CCrash=20when=20blocking=20a?= =?UTF-8?q?vatar=20from=20the=20inventory=20offer=20dialog=E2=80=9D,=20add?= =?UTF-8?q?ed=20clean-up=20of=20stored=20toasts=20list=20on=20toast=20dest?= =?UTF-8?q?roy=20event;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --HG-- branch : product-engine --- indra/newview/llscreenchannel.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'indra') diff --git a/indra/newview/llscreenchannel.cpp b/indra/newview/llscreenchannel.cpp index 027f3daffb..2eee7635a7 100644 --- a/indra/newview/llscreenchannel.cpp +++ b/indra/newview/llscreenchannel.cpp @@ -250,6 +250,13 @@ void LLScreenChannel::onToastDestroyed(LLToast* toast) { mToastList.erase(it); } + + it = find(mStoredToastList.begin(), mStoredToastList.end(), static_cast(toast)); + + if(it != mStoredToastList.end()) + { + mStoredToastList.erase(it); + } } -- cgit v1.2.3