Re: How is this an "incorrect decrement of a reference count"?
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