• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Memory Management
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Memory Management (From: John MacMullin <email@hidden>)

  • Prev by Date: Re: plotting data
  • Next by Date: Re: problem with NSScrollView
  • Previous by thread: Re: Memory Management
  • Next by thread: Re: Memory Management
  • Index(es):
    • Date
    • Thread