Re: Releasing by reference
Re: Releasing by reference
- Subject: Re: Releasing by reference
- From: Uli Kusterer <email@hidden>
- Date: Thu, 2 Aug 2007 10:11:16 +0200
On 01.08.2007, at 16:02, Scott Morrison wrote:
if (mov && aMovie && mov!=aMovie) [mov release]; // prevent a leak;
That causes a leak, too. If mov was set, but aMovie was NIL, mov
won't get released, but will afterwards be set to NIL, and you've
lost the pointer you originally retained.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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