Re: Analyser reports memory leak… where?
Re: Analyser reports memory leak… where?
- Subject: Re: Analyser reports memory leak… where?
- From: Roland King <email@hidden>
- Date: Thu, 12 Sep 2013 18:56:14 +0800
That's not even what the error message is saying, it's trying to tell you, as you summarized earlier, that the temporary variable you are assigning to and properly releasing is being called out as a leak, it's not complaining about the ivar.
On 12 Sep, 2013, at 6:52 pm, Graham Cox <email@hidden> wrote:
>
> On 12/09/2013, at 12:34 PM, Bill Cheeseman <email@hidden> wrote:
>
>> The retain count is still +1 at the point where the error is reported.
>
>
> But shouldn't it take into account that it was assigned to an ivar that is retained until -dealloc? Or is it trying to tell me that it will leak if the enclosing object happens to leak? If so, that would mean thousands of false positives in most code, which doesn't appear to happen. This particular object is a singleton that is never deallocated explicitly in fact - is that it?
>
> --Graham
>
>
> _______________________________________________
>
> 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
_______________________________________________
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