I have an empty derived Sprite class.
I addChild to it another Sprite class I created (lets call it ChildSprite).
When I create the ChildSprite object, I do childSprite->autorelease();
However as soon as the program starts, the destructor of childSprite is called and I get an assert message “Node still marked as running on node destruction! Was base class onExit() called in derived class onExit() implementations?”
If I remove the autorelease, everything works.
Any ideas why ?