Re: Solving memory leaks
Re: Solving memory leaks
- Subject: Re: Solving memory leaks
- From: Michael Davey <email@hidden>
- Date: Sun, 28 Mar 2010 02:31:10 +0100
Thank you all so much for your responses - I will give them much better attention tomorrow, and sober :o)
On 28 Mar 2010, at 02:23, Klaus Backert wrote:
>
> On 27 Mar 2010, at 23:16, Quincey Morris wrote:
>
>> On Mar 27, 2010, at 14:11, Klaus Backert wrote:
>>
>>> something like this (caution: typed in mail, etc.)
>>
>>
>> Yeah, something like this, but *not* this:
>>
>>> self.myFields = [[NSMutableArray alloc] init];
>>
>> That's a memory leak right there. :)
>
> Yes, sorry, and shame on me; too fast, too erroneous. The alloc-init retains and is not balanced by a release.
>
> Klaus
>
> _______________________________________________
>
> 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