I have a simple CCScene
containing only one node created from a CocosBuilder template with [CCBReader nodeGraphWithFile:]
method.
So far, I did not release the ccb node in the dealloc
method of the scene because I expected it to be autoreleased. But in the allocation profiler, I noticed that there is a memory leak if I push/pop the scene several times in the CCDirector
.
This memory leak disappears if I actually release
the node in the scene's dealloc
method.
Why do I need to release the node though I didn't retain/init it ? Is there something I misunderstood ?