• 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: if statement causing 32 Byte leak?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: if statement causing 32 Byte leak?


  • Subject: Re: if statement causing 32 Byte leak?
  • From: Paul Bruneau <email@hidden>
  • Date: Sat, 9 Jan 2010 20:23:30 -0500

-new is the equivalent of an -alloc and -init, so you already own the object at that point. Then you retain it, so I think that's more retaining than you want to do.

That's my guess

Sent from my iPhone--typos caused by auto-correct

On Jan 9, 2010, at 8:15 PM, "Mr. Gecko" <email@hidden> wrote:

Hello, I'm going through leak checking and it seems that a if statement is causing a leak that's 32 Bytes big. My if statement is

if (connections==nil) {
   connections = [[NSMutableArray new] retain];
}

It says that if (connections==nil) is leaking 32 bytes which I have no idea how that could be possible. Yes I'm releasing connections after I'm done using it.
Should I just ignore this? Thanks,
Mr. Gecko
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: if statement causing 32 Byte leak?
      • From: "Mr. Gecko" <email@hidden>
References: 
 >if statement causing 32 Byte leak? (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Re: if statement causing 32 Byte leak?
  • Next by Date: Re: if statement causing 32 Byte leak?
  • Previous by thread: Re: if statement causing 32 Byte leak?
  • Next by thread: Re: if statement causing 32 Byte leak?
  • Index(es):
    • Date
    • Thread