The case is that I have a CCLayer created with cocosBuilder, and there are children added either programmatically or initially using the builder. I am not sure if the children would be released correctly if I do not remove all of them manually.
Asked
Active
Viewed 301 times
2 Answers
0
You do not need to remove them manually. Each node removes its children (empties the children array) when it deallocates.

CodeSmile
- 64,284
- 20
- 132
- 217
0
But I think we should remove them if we are adding them to the main game layer very frequently . As with time there will be lots of them waiting to be removed,which may increase memory usage.

Eklavyaa
- 370
- 5
- 17