Re: NSTask Leaking...
Re: NSTask Leaking...
- Subject: Re: NSTask Leaking...
- From: Vitaly Ovchinnikov <email@hidden>
- Date: Thu, 29 Jan 2009 21:33:19 +0300
At least one leak is here:
> NSString *rMD5 = [[[[NSString alloc] initWithData:.....];
You just put new string object to rMD5 and now need to release it.
> ...
> rMD5 = [self replace:@"\n" with:@"" source:rMD5];
You just created another string object that you don't need to release,
and replace pointer to the first string with the new string
> ...
> return [rMD5 autorelease];
And here you asked for autorelease of the object that you don't need to release.
_______________________________________________
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