fix some SIGSEGV thanks to cocos2dx autorelease-pool