You should retain each animation created in the last line of `HelloWorld::createAnimation()`. something like `_charanimation[a]->retain()`. And later when this class is getting destroyed (in `HelloWorld::~HelloWorld()` or whenever you don't need animations any more) you should release all those classes you retained the animations to mark they are not needed any more. Note that you should not delete anything, if those animations where needed in some other class, deleting them will result in that other class malfunctioning. And if it's not needed anywhere else, releasing an instance of `CCObject` (grand parent of all cocos2dx objects) will automatically delete that instance which means that object will be deleted twice that will result in access violation.