• 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: How is this an "incorrect decrement of a reference count"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How is this an "incorrect decrement of a reference count"?


  • Subject: Re: How is this an "incorrect decrement of a reference count"?
  • From: G S <email@hidden>
  • Date: Mon, 19 Mar 2012 15:22:40 -0700

On Mon, Mar 19, 2012 at 6:18 AM, Roland King <email@hidden> wrote:

> No, the analyzer is right and your code is somewhat confused. I'm trying
> to figure out how you ended up with code like that, did you find you had an
> extra retain somewhere and need to get rid of it?


Yes.  The allocated object has a retain count of 1, and the property is set
to retain.  So there's the extra retention.

That's all it tells you, ie somewhere you either have
>
> @synthesize imagePickerController=_imagePIckerController;
>

Exactly. Without the release, the analyzer complains about leaks, and does
so on ALL cases.
_______________________________________________

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: How is this an "incorrect decrement of a reference count"?
      • From: Roland King <email@hidden>
References: 
 >How is this an "incorrect decrement of a reference count"? (From: G S <email@hidden>)
 >Re: How is this an "incorrect decrement of a reference count"? (From: Roland King <email@hidden>)

  • Prev by Date: Moving connections to new object
  • Next by Date: Re: How is this an "incorrect decrement of a reference count"?
  • Previous by thread: Re: How is this an "incorrect decrement of a reference count"?
  • Next by thread: Re: How is this an "incorrect decrement of a reference count"?
  • Index(es):
    • Date
    • Thread