From fe37c59940d81db6f95b842da1b14b67cb9451d6 Mon Sep 17 00:00:00 2001 From: Alexei Arabadji <aarabadji@productengine.com> Date: Mon, 18 Jan 2010 16:28:24 +0200 Subject: [PATCH] =?UTF-8?q?fixed=20EXT-4382=20=E2=80=9CCrash=20when=20bloc?= =?UTF-8?q?king=20avatar=20from=20the=20inventory=20offer=20dialog?= =?UTF-8?q?=E2=80=9D,=20added=20clean-up=20of=20stored=20toasts=20list=20o?= =?UTF-8?q?n=20toast=20destroy=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(+) diff --git a/indra/newview/llscreenchannel.cpp b/indra/newview/llscreenchannel.cpp index 027f3daffbd..2eee7635a70 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<LLPanel*>(toast)); + + if(it != mStoredToastList.end()) + { + mStoredToastList.erase(it); + } } -- GitLab