Reverts changes in CCApplication.cpp/.mm, pollEvent must after main loop, otherwise, potential crash will happen.
Merge branch 'develop' of https://github.com/dumganhar/cocos2d-x into develop