• 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: NSTask Leaking...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSTask Leaking... (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Re: NSTask Leaking...
  • Next by Date: Re: NSTask Leaking...
  • Previous by thread: Re: NSTask Leaking...
  • Next by thread: Re: NSTask Leaking...
  • Index(es):
    • Date
    • Thread