• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Releasing by reference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Releasing by reference (From: email@hidden)
 >Re: Releasing by reference (From: Stephane Sudre <email@hidden>)
 >Re: Releasing by reference (From: email@hidden)
 >Re: Releasing by reference (From: Scott Morrison <email@hidden>)

  • Prev by Date: Re: appendBytes memcpy
  • Next by Date: Re: Releasing by reference
  • Previous by thread: Re: Releasing by reference
  • Next by thread: Re: Releasing by reference
  • Index(es):
    • Date
    • Thread