mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Fixed: Clean up dyn bubbles from chat/webig to prevent crash after character change.
--HG-- branch : develop
This commit is contained in:
parent
0dfd5af8b3
commit
368e1389f2
1 changed files with 12 additions and 0 deletions
|
@ -312,6 +312,18 @@ void CGroupInSceneBubbleManager::release ()
|
|||
|
||||
_CurrentBubble = 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…
Reference in a new issue