cocos2d-x-2.2 cpp project created by has the problem of memory leak

cocos2d-x-2.2 cpp project created by has the problem of memory leak
0.0 0


I noticed that samples/Cpp/TestCpp has the problem of memory leak:

but samples/Cpp/HelloCpp hasn’t the problem:

then i tried -language cpp,and found all the cpp projects created from the templete/multi-platform-cpp/hellocpp,have the problem .

Does any of the Box2D/chipmunk/CocosDenshion/extensions/libwebsockets causes the memory leak?

btw:samples/Lua/TestCpp hastn’t the problem.

samples_cpp_hellocpp.png (361.8 KB)

templete_multi-platform-cpp_hellocpp.png (275.0 KB)


my enviorment:
mac os 10.9
IOS Simulator:IOS 7.0


ok,I have solved this problem.
this issue is only present on IOS 7.0 simulator,
when I reinstalled IOS 6.1 Simulator In Xcode5 and run the cpp project on IOS 6.1 simulator,it doesn’t memory leak.


ke wen, this problem hasn’t been “solved”. I would like to make sure that HelloCpp runs ok on ios7 simulator.
I just checked the edge version (v3.0-beta) on ios7 simulator, there’s no memory leak.
So on which version of cocos2d-x you meat this memory leaking?


cocos2d-x-2.2.0 @Sep.25 2013


I could replicate this as well in both cocos2d-x-2.1.3, cocos2d-x-2.2.1
Simulator iOS 7.0.3(11B508)

But the memory consumption climbed up and started to flatten after 6 minutes.
No issue in iOS 6.0 and iOS 7.0 (previous version).


Issue persists in cocos2d-x-2.2.2 as well.
No issue in cocos2d-x-3.0beta using Simulator iOS 7.0.3.