From 5d276be881593b9e2c247edf8e6361447e964d52 Mon Sep 17 00:00:00 2001
From: Seth ProductEngine <slitovchuk@productengine.com>
Date: Fri, 10 Feb 2012 20:36:53 +0200
Subject: EXP-1885 FIXED the crash when receiving multiple inventory offer
 notifications. Fixed erasing the iterator which was becoming invalid on
 recursive calls.

---
 indra/newview/llscreenchannel.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llscreenchannel.cpp b/indra/newview/llscreenchannel.cpp
index 1045009a04..a0f146e506 100644
--- a/indra/newview/llscreenchannel.cpp
+++ b/indra/newview/llscreenchannel.cpp
@@ -327,8 +327,8 @@ void LLScreenChannel::onToastFade(LLToast* toast)
 		bool delete_toast = !mCanStoreToasts || !toast->getCanBeStored();
 		if(delete_toast)
 		{
-			deleteToast(toast);
 			mToastList.erase(it);
+			deleteToast(toast);
 		}
 		else
 		{
-- 
cgit v1.2.3