Possible Duplicate:
Why shouldn’t I use the getter to release a property in objective-c?
I am little bit confused on alloc and release with self. After looking to several post and tutorials there seems that more suggestions needed on this. Following are the list of questions:
- Is this a correct way to alloc and release. self.selectPopover = [[UIPopoverController alloc] init];
[self.selectPopover release];
- Trying to execute this code from another class. classArr is define in ObjClass. When i analyze this code potential leak "Incorrect decrement of the reference count of an object that is not owned at this point by the caller" is occured.
ObjClass.classArr = [[NSMutableArray alloc]init];
[ObjClass.classArr release];
So anyone can clear my doubts on this. Thanks in advance.