• 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: Will this leak memory?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Will this leak memory?


  • Subject: Re: Will this leak memory?
  • From: "Alastair J.Houghton" <email@hidden>
  • Date: Fri, 5 Sep 2003 23:53:37 +0100

On Friday, September 5, 2003, at 07:05 pm, Clark S.Cox III wrote:

On Sep 05, 2003, at 10:01, Alastair J.Houghton wrote:

You need to initialise defaultObject... that is, it should be

static MyObject *defaultObject = nil;

rather than just

static MyObject *defaultObject;

No, static variables are automatically initialized to zero.

Sorry, you're quite right. A few systems I've used didn't follow the C standard properly, so sometimes I remember rules that were appropriate for them.

Kind regards,

Alastair.
_______________________________________________
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: 
 >Re: Will this leak memory? (From: "Clark S. Cox III" <email@hidden>)

  • Prev by Date: Re: Registering software product
  • Next by Date: Timeouts in SmallSocket?
  • Previous by thread: Re: Will this leak memory?
  • Next by thread: RE: Will this leak memory?
  • Index(es):
    • Date
    • Thread