hellocpp怎么也有2处内存泄漏?

我用vld看了下hellocpp 打开关闭也有2处内存泄漏?
我用的2.2.3!

cocos2d: deallocing CCDirector 006AA2C8
WARNING: Visual Leak Detector detected memory leaks!
---------- Block 1504 at 0x057A6C88: 8 bytes ----------
Call Stack:
f:\dd\vctools\crt_bld\self_x86\crt\src\dbgmalloc.c (56): malloc
e:\program files (x86)\microsoft visual studio 11.0\vc\include\xmemory0 (28): std::_Allocatestd::_Container_proxy
e:\program files (x86)\microsoft visual studio 11.0\vc\include\xmemory0 (591): std::allocatorstd::_Container_proxy::allocate
e:\program files (x86)\microsoft visual studio 11.0\vc\include\xstring (671): std::_String_alloc<0,std::_String_base_types<char,std::allocator > >::_Alloc_proxy
e:\program files (x86)\microsoft visual studio 11.0\vc\include\xstring (651): std::_String_alloc<0,std::_String_base_types<char,std::allocator > >::_String_alloc<0,std::_String_base_types<char,std::allocator > >
e:\program files (x86)\microsoft visual studio 11.0\vc\include\xstring (749): std::basic_string<char,std::char_traits,std::allocator >::basic_string<char,std::char_traits,std::allocator >
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\platform\win32\ccimage.cpp (41): cocos2d::BitmapDC::BitmapDC
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\platform\win32\ccimage.cpp (365): cocos2d::sharedBitmapDC
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\platform\win32\ccimage.cpp (382): cocos2d::CCImage::initWithString
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\textures\cctexture2d.cpp (498): cocos2d::CCTexture2D::initWithString
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\label_nodes\cclabelttf.cpp (318): cocos2d::CCLabelTTF::updateTexture
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\label_nodes\cclabelttf.cpp (184): cocos2d::CCLabelTTF::setString
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\label_nodes\cclabelttf.cpp (143): cocos2d::CCLabelTTF::initWithString
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\label_nodes\cclabelttf.cpp (90): cocos2d::CCLabelTTF::create
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\label_nodes\cclabelttf.cpp (76): cocos2d::CCLabelTTF::create
e:\mobile\client\cocos2d-x-2.2.3\samples\cpp\hellocpp\classes\helloworldscene.cpp (59): HelloWorld::init
e:\mobile\client\cocos2d-x-2.2.3\samples\cpp\hellocpp\classes\helloworldscene.h (19): HelloWorld::create
e:\mobile\client\cocos2d-x-2.2.3\samples\cpp\hellocpp\classes\helloworldscene.cpp (12): HelloWorld::scene
e:\mobile\client\cocos2d-x-2.2.3\samples\cpp\hellocpp\classes\appdelegate.cpp (100): AppDelegate::applicationDidFinishLaunching
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\platform\win32\ccapplication.cpp (47): cocos2d::CCApplication::run
e:\mobile\client\cocos2d-x-2.2.3\samples\cpp\hellocpp\proj.win32\main.cpp (23): wWinMain
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (528): __tmainCRTStartup
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (377): wWinMainCRTStartup
0x7685336A (File and line number not available): BaseThreadInitThunk
0x774F9F72 (File and line number not available): RtlInitializeExceptionChain
0x774F9F45 (File and line number not available): RtlInitializeExceptionChain
Data:
88 5E 4F 50 00 00 00 00 .^OP… …

---------- Block 621 at 0x026F2900: 4 bytes ----------
Call Stack:
f:\dd\vctools\crt_bld\self_x86\crt\src\dbgmalloc.c (56): malloc
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\script_support\ccscriptsupport.cpp (158): cocos2d::CCScriptEngineManager::sharedManager
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\cocoa\ccobject.cpp (66): cocos2d::CCObject::~CCObject
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\platform\ccimagecommon_cpp.h (111): cocos2d::CCImage::~CCImage
0x50359F89 (File and line number not available): cocos2d::CCImage::`vector deleting destructor’
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\cocoa\ccobject.cpp (86): cocos2d::CCObject::release
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\ccdirector.cpp (902): cocos2d::CCDirector::createStatsLabel
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\ccdirector.cpp (362): cocos2d::CCDirector::setOpenGLView
e:\mobile\client\cocos2d-x-2.2.3\samples\cpp\hellocpp\classes\appdelegate.cpp (49): AppDelegate::applicationDidFinishLaunching
e:\mobile\client\cocos2d-x-2.2.3\cocos2dx\platform\win32\ccapplication.cpp (47): cocos2d::CCApplication::run
e:\mobile\client\cocos2d-x-2.2.3\samples\cpp\hellocpp\proj.win32\main.cpp (23): wWinMain
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (528): __tmainCRTStartup
f:\dd\vctools\crt_bld\self_x86\crt\src\crtexe.c (377): wWinMainCRTStartup
0x7685336A (File and line number not available): BaseThreadInitThunk
0x774F9F72 (File and line number not available): RtlInitializeExceptionChain
0x774F9F45 (File and line number not available): RtlInitializeExceptionChain
Data:
00 00 00 00 … …

Visual Leak Detector detected 2 memory leaks.

您好,感谢您的反馈该问题已被提交至cocos2d-x 团队。感谢您对Cocos引擎的支持。

您好,您的这个泄露是把application也算进去了,这个是application的测试例子。
还有vld会把一些静态单例,生命周期是整个应用的也算进去。