fixed EXT-4478 “Memory leak in LLChicletPanel”,

added destroying chiclet on chiclet panel item remove event;
made LLIMChiclet destructor virtual;

--HG--
branch : product-engine
meow-7.2.2
Alexei Arabadji 2010-01-19 17:58:17 +02:00
parent 00c05a885f
commit bde7830bf5
2 changed files with 2 additions and 1 deletions

View File

@ -1297,6 +1297,7 @@ void LLChicletPanel::removeChiclet(chiclet_list_t::iterator it)
mChicletList.erase(it);
arrange();
(*it)->die();
}
void LLChicletPanel::removeChiclet(S32 index)

View File

@ -325,7 +325,7 @@ public:
};
/*virtual*/ ~LLIMChiclet() {};
virtual ~LLIMChiclet() {};
/**
* Sets IM session name. This name will be displayed in chiclet tooltip.