cocos2d/cocos2d-x — pull request #700 by leopoldchen (2012-02-01 09:39:18+00:00)
Title: a solution about bug #942

#942 Invoke CCScheduler:sharedScheduler():scheduleScriptFunc in lua may cause crashion.

this solution is quite similar to the original unscheduleSelector.
use a flag to mark if we want to delete the scriptfunc entry.
and in the unscheduleScriptFunc function, we only set this flag (currentTimerSalvaged) as true, then in the tick function, we delete it after timer update.

file list:
CCScheduler.h/cpp
&test code is in hello.lua