I want to know what is the difference between 2 ways: delete pointers… in onExit() and delete pointers … in destructor of a class which is subclass of CC*****
onExit is called whenever a node leaves the stage. It can enter it again later. Destructor is end-of-life for object. If you’re looking for proper place to final cleanup destructor is it.