cocos2d/cocos2d-x — pull request #3969 by dualface (2013-10-18 03:35:19+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