erikdoe / ocmock

Mock objects for Objective-C
http://ocmock.org
Apache License 2.0
2.16k stars 606 forks source link

Retain returnValues #455

Closed dmaclach closed 4 years ago

dmaclach commented 4 years ago

Retain the returnValues so they aren't released between the time they are returned and the time they are either retained by the caller, or in the case of non ARC calling code possibly not retained at all because the receiver was expecting a retained value.

dmaclach commented 4 years ago

This is not a feature, but fixes potential crashing bugs, so would be a good candidate for pulling into master ASAP.