Re: Leak Hunting and Object Alloc
Re: Leak Hunting and Object Alloc
- Subject: Re: Leak Hunting and Object Alloc
- From: "Julien Jalon" <email@hidden>
- Date: Thu, 23 Nov 2006 19:24:51 +0100
You should check the stack trace for the Released events and see if
there isn't already one that is the delayed release you see in the
autoreleased event.
--
Julien
On 11/23/06, Skip Haughay <email@hidden> wrote:
This is terribly frustrating.
I am attempting too chase down some leaks in my framework. I am having a difficult time of it. I have a leak that is being reported in the leaks tool:
Leak: 0x003cf680 size=48 instance of 'com_apple_ist_ds2_pub_common_Name'
0x053040ac 0x00000000 0x00000000 0x00000000 .0@.............
0x00000000 0x00000000 0x00000000 0x00000000 ................
0x00000000 0x003ce5e0 0x00000000 0x00000000 .....<..........
I look in ObjectAlloc and find this object. I look at the chain of allocation events:
AllocationEvent
ObjectRetainedEvent
ObjectAutoreleasedEvent
ObjectRetainedEvent
ObjectReleasedEvent
ObjectReleasedEvent
Shouldn't this be released when the current autorelease pool is cleared?
Skip
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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)
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