summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAlexei Arabadji <aarabadji@productengine.com>2010-01-20 15:41:48 +0200
committerAlexei Arabadji <aarabadji@productengine.com>2010-01-20 15:41:48 +0200
commit3324c736d7df4035bc73b5f27c8eea756ff43234 (patch)
treeb4621056caaaca3433f50e27dbf7e48485f96e54 /indra
parentd970835f411c16e685915bf344c01f207e57c905 (diff)
fixed EXT-4515 “Crash when ending an IM session”,
corrected chiclet destroying; --HG-- branch : product-engine
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llchiclet.cpp5
1 files changed, 3 insertions, 2 deletions
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&param)
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)