• 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: Untitled Document Leak
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Untitled Document Leak


  • Subject: Re: Untitled Document Leak
  • From: Seth Willits <email@hidden>
  • Date: Mon, 7 Dec 2009 12:06:21 -0800

On Dec 7, 2009, at 9:36 AM, Richard Somers wrote:

>> This isn't a leak, it's caching the color. Otherwise it would have to call into the OS (CoreUI or what have you) every time anyone asked for the control color, which happens quite often.
>
> MallocDebug reported it as a leak so I thought it was a leak. So how do you identify leaks from non-leaks?

Intuition.

The only way to know is to understand what's going on which makes it think it's a leak. But you can pretty much ignore any reported "leaks" which aren't from your own code. There may be a leak in the frameworks, but it's so rare it wouldn't really be worth your time trying to understand every potential one. You'll get used to seeing the same kind of "leak" over and over and learn to ignore it.

--
Seth Willits



_______________________________________________

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: 
 >Untitled Document Leak (From: Richard Somers <email@hidden>)
 >Re: Untitled Document Leak (From: Kyle Sluder <email@hidden>)
 >Re: Untitled Document Leak (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: Draw rounded NSImage
  • Next by Date: receiving events
  • Previous by thread: Re: Untitled Document Leak
  • Next by thread: receiving events
  • Index(es):
    • Date
    • Thread