Re: [ myWorkSpace openURL: myurl ] is leaking. Why??
Re: [ myWorkSpace openURL: myurl ] is leaking. Why??
- Subject: Re: [ myWorkSpace openURL: myurl ] is leaking. Why??
- From: Bill Bumgarner <email@hidden>
- Date: Fri, 11 Dec 2009 00:00:39 -0800
On Dec 10, 2009, at 11:55 PM, Parimal Das wrote:
> I must be missing something here.
> Can anyone point what is wrong here.
(1) there is no need for an autorelease pool in such a simple -awakeFromNib. It will be in the context of an autorelease pool to begin with and doesn't create enough memory load to warrant a nested pool.
(2) To determine why leaks says those two dictionaries are leaking, first find their content and then turn on malloc stack logging and figure out where they were allocated.
To do the first, break into gdb and -- obviously substituting the address that leaks reports -- 'po 0x13b9b0'.
That'll dump the contents of the dictionary.
If you set the environment MallocStackLoggingNoCompact to "YES", then you can do -- also in gdb -- 'info malloc 0x13b9b0' and see the allocation point of the object in question.
Or... alternatively... use Instruments as it can track leaks.
b.bum
_______________________________________________
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