cocos2d/cocos2d-x — pull request #3970 by dualface (2013-10-18 04:07:42+00:00)
Title: fix tolua_fix, cleanup peertable after object deleted

~~~ lua
local scene = CCScene:create()
CCDirector:sharedDirector():runWithScene(scene)

local node = CCNode:create()
scene:addChild(node)
node.t = 1
node:removeFromParentAndCleanup(true)

print(node.t)

scene:scheduleUpdate(function()
print(node.t)
scene:unscheduleUpdate()
end)

~~~

without this path, output is:

- 1
- 1

with this path, output is:

- 1
- nil