• 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: Leak in NSData +dataWithContentsOfURL:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Leak in NSData +dataWithContentsOfURL:


  • Subject: Re: Leak in NSData +dataWithContentsOfURL:
  • From: "Timothy J. Wood" <email@hidden>
  • Date: Fri, 15 Mar 2002 21:10:12 -0800

On Friday, March 15, 2002, at 06:12 PM, email@hidden wrote:
This is all very interesting. However, I wonder if it's right beyond a doubt. The problem is that NSURLHandle defines "caching" behavior whereby URLHandles, and the data they have fetched, get retained so that subsequent uses of the handle don't cause a refetch. It sounds to me like the NSHTTPURLHandle is probably being placed into that cache, which is retaining it. You may not be seeing that retain in OmniObjectMeter because perhaps it is being done using CF, or even by more directly manipulating the retain count (shudder). Have you confirmed that -dealloc is getting called on the NSHTTPURLHandle at all, using a breakpoint? Have you printed out what the handle thinks its retain count is, at various interesting points in time?
Sorry if I'm barking up the wrong tree and this is actually a bug in Apple's code, but the evidence presented so far seems less than conclusive to me...

This is an excellent point -- this could well be the case (I haven't verified it, but perhaps Mr. Feinberg will do so for us).

(Although OOM _does_ see a CFRetains :)

-tim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Leak in NSData +dataWithContentsOfURL: (From: email@hidden)

  • Prev by Date: Re: dd: speed up mouse with Cocoa?
  • Next by Date: Re: Leak in NSData +dataWithContentsOfURL:
  • Previous by thread: Re: Leak in NSData +dataWithContentsOfURL:
  • Next by thread: Re: Leak in NSData +dataWithContentsOfURL:
  • Index(es):
    • Date
    • Thread