From cb65c89d19ad9519ed994f5ba41a5eda34911e2a Mon Sep 17 00:00:00 2001 From: Nimetu Date: Mon, 3 Jul 2017 21:54:35 +0300 Subject: [PATCH] Fixed: Clean up dyn bubbles from chat/webig to prevent crash after character change. --HG-- branch : compatibility-develop --- .../src/interface_v3/group_in_scene_bubble.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/ryzom/client/src/interface_v3/group_in_scene_bubble.cpp b/code/ryzom/client/src/interface_v3/group_in_scene_bubble.cpp index e9c7776c5..5660ef212 100644 --- a/code/ryzom/client/src/interface_v3/group_in_scene_bubble.cpp +++ b/code/ryzom/client/src/interface_v3/group_in_scene_bubble.cpp @@ -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(); } // ***************************************************************************