cocos2d/cocos2d-x — pull request #5283 by seemk (2014-02-01 20:23:32+00:00)
Title: Fixed crashing when calling CCDirector's end().

In the win32 application, calling CCDirector's end (e.g. the close button in the startup project) method caused a segfault. The director outside of Application::run's while loop was referenced after it had deleted itself, trying to do another cleanup. The second cleanup is now avoided, but a cleanup is still done if the window is closed manually.