Preventing memory leaks in iphone application development
To keep away from memory leak, you need to release the object which is responsible by YOU.
• You allocated the object using alloc.If you allocated the object, you have to release it at the end.
• The object is a result of a copy made by you. If you create an object by copying it from another object, you are responsible for releasing it at the end.
• The object was retained by you. If you express your desire to keep a given object alive, you have to express your desire that the object should die when you are no longer in need of it.
Thats it you are done.
No comments:
Post a Comment