cocos2dx2.2.3
用vld输出如下日志
---------- Block 21219 at 0x0710AFB0: 568 bytes ----------
Leak Hash: 0xAA5EBEDC, Count: 1, Total 568 bytes
Call Stack (TID 7440):
HINT: The following call stack may be incomplete. Setting “StackWalkMethod”
in the vld.ini file to “safe” instead of “fast” may result in a more
complete stack trace.
f:\dd\vctools\crt_bld\self_x86\crt\src\new.cpp (57): MSVCR110D.dll!operator new
d:\work\cocos2d-x-2.2.3\extensions\cocostudio\gui\uiwidgets\uicheckbox.cpp (70): DragonBall.exe!cocos2d::ui::CheckBox::create + 0xA bytes
d:\work\cocos2d-x-2.2.3\extensions\cocostudio\gui\uiwidgets\uicheckbox.cpp (38): DragonBall.exe!cocos2d::ui::CheckBox::createInstance + 0x23 bytes
d:\work\cocos2d-x-2.2.3\extensions\cocostudio\trigger\objectfactory.cpp (164): DragonBall.exe!cocos2d::extension::ObjectFactory::createGUI + 0x5 bytes
d:\work\cocos2d-x-2.2.3\extensions\cocostudio\reader\guireader.cpp (996): DragonBall.exe!cocos2d::extension::WidgetPropertiesReader0300::widgetFromJsonDictionary + 0x40 bytes
d:\work\cocos2d-x-2.2.3\extensions\cocostudio\reader\guireader.cpp (1097): DragonBall.exe!cocos2d::extension::WidgetPropertiesReader0300::widgetFromJsonDictionary + 0x16 bytes
d:\work\cocos2d-x-2.2.3\extensions\cocostudio\reader\guireader.cpp (1097): DragonBall.exe!cocos2d::extension::WidgetPropertiesReader0300::widgetFromJsonDictionary + 0x16 bytes
d:\work\cocos2d-x-2.2.3\extensions\cocostudio\reader\guireader.cpp (972): DragonBall.exe!cocos2d::extension::WidgetPropertiesReader0300::createWidget + 0x16 bytes
d:\work\cocos2d-x-2.2.3\extensions\cocostudio\reader\guireader.cpp (223): DragonBall.exe!cocos2d::extension::GUIReader::widgetFromJsonFile + 0x29 bytes
通过TouchGroup::addWidget添加的layout已经销毁了,为何layout里面的控件都还存在内存泄露, SceneReader::purge(); GUIReader::purge();
ActionManager::purge(); 这些语句都执行过了