public SchedulerTest1() { CCLayer layer = CCLayer.node(); //UXLOG("retain count after init is %d", layer->retainCount()); // 1 addChild(layer, 0); //UXLOG("retain count after addChild is %d", layer->retainCount()); // 2 layer.schedule((doSomething)); //UXLOG("retain count after schedule is %d", layer->retainCount()); // 3 : (object-c viersion), but win32 version is still 2, because CCTimer class don't save target. layer.unschedule((doSomething)); //UXLOG("retain count after unschedule is %d", layer->retainCount()); // STILL 3! (win32 is '2') }