From 3324c736d7df4035bc73b5f27c8eea756ff43234 Mon Sep 17 00:00:00 2001 From: Alexei Arabadji Date: Wed, 20 Jan 2010 15:41:48 +0200 Subject: =?UTF-8?q?fixed=20=20EXT-4515=20=E2=80=9CCrash=20when=20ending=20?= =?UTF-8?q?an=20IM=20session=E2=80=9D,=20corrected=20chiclet=20destroying;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --HG-- branch : product-engine --- indra/newview/llchiclet.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'indra') diff --git a/indra/newview/llchiclet.cpp b/indra/newview/llchiclet.cpp index 1d739f07b1..5497d6121f 100644 --- a/indra/newview/llchiclet.cpp +++ b/indra/newview/llchiclet.cpp @@ -1293,11 +1293,12 @@ void LLChicletPanel::onChicletClick(LLUICtrl*ctrl,const LLSD¶m) void LLChicletPanel::removeChiclet(chiclet_list_t::iterator it) { - mScrollArea->removeChild(*it); + LLChiclet* chiclet = *it; + mScrollArea->removeChild(chiclet); mChicletList.erase(it); arrange(); - (*it)->die(); + chiclet->die(); } void LLChicletPanel::removeChiclet(S32 index) -- cgit v1.2.3