From b4466fab121f0ee51e6a6cd55622966101890022 Mon Sep 17 00:00:00 2001 From: CaiWenzhi Date: Fri, 7 Mar 2014 11:58:54 +0800 Subject: [PATCH] Fixed bug of action manager --- cocos/editor-support/cocostudio/CCActionManagerEx.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/cocos/editor-support/cocostudio/CCActionManagerEx.cpp b/cocos/editor-support/cocostudio/CCActionManagerEx.cpp index 321d5c470c..6e30477794 100644 --- a/cocos/editor-support/cocostudio/CCActionManagerEx.cpp +++ b/cocos/editor-support/cocostudio/CCActionManagerEx.cpp @@ -110,10 +110,17 @@ ActionObject* ActionManagerEx::playActionByName(const char* jsonName,const char* } return action; } - + void ActionManagerEx::releaseActions() { - _actionDic.clear(); + std::unordered_map>::iterator iter; + for (iter = _actionDic.begin(); iter != _actionDic.end(); iter++) + { + cocos2d::Vector objList = iter->second; + objList.clear(); + } + + _actionDic.clear(); } } \ No newline at end of file