Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NSInvocation+OCMAdditions: don't retain deallocating objects.
Solves erikdoe#346. `allowsWeakReference` returns `NO` if the receiver is during deallocation. Not retaining deallocating objects would prevent crashing later when the retained arguments are released - including the previously deallocated objects. There are some classes that can never have weak references - these would also not be retained which might limit some OCMock functionality.
- Loading branch information