Re: Must remove submenu when dealloccing NSMenuItem?
Re: Must remove submenu when dealloccing NSMenuItem?
- Subject: Re: Must remove submenu when dealloccing NSMenuItem?
- From: Andy Lee <email@hidden>
- Date: Thu, 22 Feb 2007 10:24:19 -0500
On Feb 21, 2007, at 10:03 PM, Jerry Krinock wrote:
CONCLUSION: I think this indicates a leak in Apple's implementation of
NSMenuItem; possibly that they retain the _submenu as an instance
variable,
but don't set it to nil during -dealloc. Either that, or they've
got a
retain cycle.
P.P.S. It isn't whether the instance variable gets set to nil during
-dealloc, it's whether it's released. I know *you* know that -- just
pointing it out for the archives and to be a nitpicker. :)
Okay, really off to work now...
--Andy
_______________________________________________
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