请教用Spine的SkeletonAnimation对象在cocos2dx是用什么方式释放内存

spine导出的SkeletonAnimation对象在cocos2dx是用什么方式释放内存的?用removeChild貌似没效果,用release()会死机。

clearTracks()

谢谢解答,我后来问题解决了,原来spine不会自动释放纹理,需要手动释放纹理
SpriteFrameCache::getInstance()->removeUnusedSpriteFrames();
Director::getInstance()->getTextureCache()->removeUnusedTextures();