Re: Leak in NSData +dataWithContentsOfURL:
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.