Re: [Cedar] Memory management on doubles

21 views
Skip to first unread message

Adam Milligan

unread,
Feb 18, 2013, 5:11:21 PM2/18/13
to cedar-...@googlegroups.com
There's no need to release doubles, Cedar will autorelease them for you.  

If you spy on an object, then the spy will remain on that instance for its lifetime, but you should release and recreate instances as you normally would for each example in order to avoid test pollution.  The extra elements added by the spy will be released when the instance itself is released.

On Tue, Feb 12, 2013 at 2:42 PM, <belk...@okolodev.org> wrote:
Hello!
I have a question. Should I release doubles in "afterEach" block?

--
You received this message because you are subscribed to the Google Groups "Cedar Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cedar-discus...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages