关于Visual Leak Detector检查到cocs2dx-lua 中cpp()和getContentSize()内存泄露的问题

使用Visual Leak Detector进行内存检测的时候,发现大量如下的内存泄露信息

---------- Block 1725 at 0x0520F4D8: 3 bytes ----------
Call Stack:
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.
e:\cocos2d-x-2.2.6\scripting\lua\cocos2dx_support\luacocos2d.cpp (1191): myproj.exe!tolua_Cocos2d_ccc300 + 0x7 bytes
0x5288F89F (File and line number not available): lua51.dll!lua_close + 0x55FF bytes
0x00010660 (File and line number not available): (Module name unavailable)!(Function name unavailable)
Data:
FF FF 00
---------- Block 10533 at 0x052FDC48: 8 bytes ----------
Call Stack:
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.
e:\cocos2d-x-2.2.6\scripting\lua\cocos2dx_support\luacocos2d.cpp (12274): myproj.exe!tolua_Cocos2d_CCDirector_getVisibleSize00 + 0x7 bytes
0x5288F89F (File and line number not available): lua51.dll!lua_close + 0x55FF bytes
Data:
00 00 A0 44 00 00 34 44 …D…4D …

---------- Block 79875 at 0x07644B48: 8 bytes ----------
Call Stack:
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.
e:\cocos2d-x-2.2.6\scripting\lua\cocos2dx_support\luacocos2d.cpp (16429): myproj.exe!tolua_Cocos2d_CCNode_convertToWorldSpace00 + 0x7 bytes
0x5288F89F (File and line number not available): lua51.dll!lua_close + 0x55FF bytes
0x00010660 (File and line number not available): (Module name unavailable)!(Function name unavailable)
Data:
B2 5D C1 44 00 00 C0 C1 .].D… …

找了很多贴子,大部分说需要加上

collectgarbage(“setpause”, 100)
collectgarbage(“setstepmul”, 5000)

但是我代码里明明有加这两句,好像还是完全不起作用的样子.

请问Visual Leak Detector不是只支持C++,你是怎么加到lua