I downloaded 2.1.5 stable version and run sample project “HelloCpp” on VS2010.
It works, but when I add the following snippet to main function
#if defined(DEBUG) | defined(_DEBUG)
_CrtSetDbgFlag( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
I got a memory leak after closing program.
I’m not sure whether I’m right but the cause of leak maybe come from Lua’s “Script Engine Manager” instance invoked by CCObject destructor.
Any explanation would be appreciated.