[futurebasic] Re: [FB] Where shall I stick my CFArrayRef

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 2006 : Group Archive : Group : All Groups

From: Robert Purves <robert.purves@...>
Date: Mon, 27 Feb 2006 09:35:10 +1300
Ken Shmidheiser wrote:
>> 3. Should I release the array on app quit or will that be taken  
>> care of for me?
> If you want to avoid a crash on quit, you should release the  
> objects you're holding in memory. Ultimately, the system will do  
> it, but not so gracefully.

I disagree. Just quit. All memory allocated to a process (whether by  
NewHandle, NewPtr, malloc or the CF allocators) is released safely,  
quickly and automatically. Moreover, you don't have to write any  
extra code. That's what I call "graceful".

Robert P.