Okay autorelease pool is good enough for obj-c but doesn’t solve all the problems in c**. So here we go with c** way of autodestroying unneeded objects: smart pointers.
Features:
- safely use Cocos2d-x objects with STL containers and algorithms
- not care about explicitly initializing your pointers with NULL
- not care about releasing your pointers in destructors of your classes
- use even no autorelease but have your pointers correctly released
Code and more info (see README):