cocos2d/cocos2d-x — pull request #6012 by DarraghCoy (2014-03-26 22:31:57+00:00)
Title: Add cocos2d::RefPtr<T>

This class which acts a smart pointer type class for cocos2d::Ref objects. Can be used to help automate memory management and remove manual retain/release calls from code, resulting in less code and less chance of errors. Also useful to implement the RAII idiom in certain scenarios, ensuring that an object gets released upon exiting a scope.