• 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: Foundation level object leaks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Foundation level object leaks


  • Subject: Re: Foundation level object leaks
  • From: Ken Ferry <email@hidden>
  • Date: Thu, 16 Sep 2010 14:48:36 -0700

Hi Anna,

Two things:

If a dictionary is leaked, and the dictionary is holding strings, then both
the strings _and_ the dictionary are reported as leaks.  The tools aren't
smart enough to figure out that one was just a consequence of the other.

So I would ask here whether the dictionary was also leaked, and if so then
check the code that works with the dictionary.

The second bit is that the attribution you're giving isn't fault, it's just
giving the spot where the object was created.  In our reference counted
system, fault lies with the code performing -retain without -release, not
necessarily with the bit that originally created the object.

NSDictionary itself is not leaking, I promise. :-)

-Ken

On Thu, Sep 16, 2010 at 2:43 PM, Anna Billstrom <email@hidden> wrote:

> Hi
>
> I'm testing a new build, and notice that there are NSCFString object leaks,
> the responsible library is "Foundation," and the responsible frame is
> "NSDictionary(NSDictionary)". In the past I believe I've ignored these, but
> now having a bit of conscientiousness. Do you all generally ignore these, or
> is there some way of tracking them down? I'm on 4.1 SDK using the
> Instruments/run analyzer tool. I don't have any leaks pertaining to my app's
> code.
>
> Thanks
> Anna
>
> Sent from my iPad_______________________________________________
>
> 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

References: 
 >Foundation level object leaks (From: Anna Billstrom <email@hidden>)

  • Prev by Date: Foundation level object leaks
  • Next by Date: Re: Running Launch Chores, before document open Was: Modal Dialog … Crash
  • Previous by thread: Foundation level object leaks
  • Next by thread: Why is NSPopUp broken in drop-down mode?
  • Index(es):
    • Date
    • Thread