cocos2d/cocos2d-x — pull request #835 by dumganhar (2012-04-12 10:14:36+00:00)
Title: fixed #1155: Reverted CCDirector singleton to original implementation

We must take care of the life cycle of CCDirector which should be firstly initialized and be destroyed at the last. Therefore, we should use a global object variable rather than a global object pointer variable.