cocos2d/cocos2d-x — pull request #6161 by DarraghCoy (2014-04-08 00:06:35+00:00)
Title: Add extra CCNode verification

Add a check to the CCNode destructor to catch a common cocos2d-x programming mistake - forgetting to call base class onExit() in derived class onExit() implementations. We can check for this invalid API usage by checking if the node is still marked as running on destruction. If the node still thinks it's running then it's likely the cleanup logic performed by Node::onExit() was not done.