Re: I think I am leaking! :)
Re: I think I am leaking! :)
- Subject: Re: I think I am leaking! :)
- From: Andrew Platzer <email@hidden>
- Date: Sat, 27 Oct 2001 13:40:03 -0700
On Saturday, October 27, 2001, at 01:48 , Steven W. Riggins wrote:
I call this from windowDidLoad in my NSWindowController subclass.
When looking at my app with ObjectAlloc, I see 51 NSHTTPURLHandles.
Looking in the instance browser tab, I see two events per instance, an
AllocationEvent and an ObjectAutoreleasedEvent, but no release/dealloc.
This is boiled down from my larger issues, but trying to find out how I
should be releasing the data from the NSURL has become an obsession :)
I'm surprised that you get an AllocationEvent and an
ObjectAutoreleasedEvent but no subsequent actual release. It's as though
the autorelease pool isn't being freed. This should happen each time you
return from handling an event in NSApplication. I looked through the NSURL
and NSHTTPURLHandle and didn't see any obvious leaks.
Check with MallocDebug or the leaks tool to see if the objects are really
leaked or someone is holding on to an extra reference. If not, try putting
your own NSAutorelease pool around the loop and see if that helps.
Andrew
__________________________________________________________________
A n d r e w P l a t z e r
A p p l i c a t i o n F r a m e w o r k s
A p p l e