cocos2d/cocos2d-iphone — pull request #225 by jdmunro (2012-07-27 08:25:21+00:00)
Title: Don't allocate the stats labels if setting view to nil - this creates un...

...used objects when cleaning up the director. We use cocos2d in an app that also uses UIKit. So we frequently initialise/cleanup the CCDirector. During its cleanup, it sets the view to nil and this was allocating labels that can never be used.