cocos2d/cocos2d-x — pull request #2134 by AsadR (2013-03-10 14:38:58+00:00)
Title: Added CCNotificationCenter::removeAllObservers(CCObject *target)

Sometimes it's more convenient to use this call in destructors so that all observers associated with a particular target are removed. This prevents crashes in case a developer forgets to remove all observers for their object before it is destroyed.