Fixed: Clean up dyn bubbles from chat/webig to prevent crash after character change.

--HG--
branch : develop
hg/compatibility-develop
Nimetu 8 years ago
parent 0dfd5af8b3
commit 368e1389f2

@ -312,6 +312,18 @@ void CGroupInSceneBubbleManager::release ()
_CurrentBubble = 0; _CurrentBubble = 0;
_PopupCount = 0; _PopupCount = 0;
//
for (i=0; i<_DynBubbles.size(); i++)
{
CWidgetManager::getInstance()->unMakeWindow(_DynBubbles[i].Bubble);
if (_DynBubbles[i].Bubble->getParent())
_DynBubbles[i].Bubble->getParent()->delGroup(_DynBubbles[i].Bubble);
else
delete _DynBubbles[i].Bubble;
}
_DynBubbles.clear();
_GroupToDelete.clear();
} }
// *************************************************************************** // ***************************************************************************

Loading…
Cancel
Save