Re: Memory Management
Re: Memory Management
- Subject: Re: Memory Management
- From: John Randolph <email@hidden>
- Date: Mon, 28 Jul 2003 12:27:53 -0700
On Sunday, July 27, 2003, at 2:37 PM, John MacMullin wrote:
[snip]
- (NSMutableArray *)companyArray
{
if (!companyRecords) {
companyRecords = [[[NSMutableArray alloc] init] retain];
}
return companyRecords;
}
This one's definitely incorrect. companyRecords will leak.
-jcr
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.