LLPanelGroup::~LLPanelGroup() { LLGroupMgr::getInstance()->removeObserver(this); for (int i = mTabContainer->getTabCount() - 1; i >=0; --i) { LLPanelGroupTab* panelp = (LLPanelGroupTab*) mTabContainer->getPanelByIndex(i); if ( panelp ) panelp->removeObserver(this); } }