First page Back Continue Last page Graphics
Rules of Memory Management
When you create an object using new, alloc or copy, the object has retain count of 1. You are responsible for sending the object a release or autorelease message when you are done with it. It gets cleaned up when its not useful.
When you get object by any other means, remember this has retain count value as 1 and this already has been declared to be autoreleased. No need to do anything further.
If you are going to use that for longer duration you can call retain on that, but make sure then it is released by you.
If you don't own the object, don't call release.