A Leak from ScriptEngineManager?

A Leak from ScriptEngineManager?
0.0 0


Hello community,
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)

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.


You can get a fix here: https://github.com/metalpasman/cocos2d-x/commit/4f72e18354554f3536424e043007b7f4d48b3426


Thank you :slight_smile: