Re: Strange leak reported by leaks command line tool
Re: Strange leak reported by leaks command line tool
- Subject: Re: Strange leak reported by leaks command line tool
- From: Jens Alfke <email@hidden>
- Date: Mon, 16 Jun 2008 08:51:22 -0700
There's nothing inherently strange about this leak. Just because an
object was created down inside the Cocoa frameworks doesn't mean that
they're responsible for it being leaked. Anything that retains the
object might be responsible, if it forgets to release it. You have to
consider all the code that accesses this object.
Either some code you aren't showing is retaining that NSData object
(possibly the udpGetIp: or udpGetPort: methods), or your code is
running on a background thread that doesn't have an autorelease pool.
In the latter case you'd already be getting warnings about objects
being leaked, though.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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