Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid retaining objects that are being deallocated. #398

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 13, 2020

  1. Avoid retaining objects that are being deallocated.

    We do not want to retain objects that are being deallocated because this will cause
    a crash later when the retaining object releases them.
    
    An example of this is when a delegate (that is mocked) is called in a dealloc for an
    object. The mock retains the deallocating object as part of an invocation and then
    things crash later when the invocation is released as part of the mock deallocating
    itself.
    dmaclach committed Aug 13, 2020
    Configuration menu
    Copy the full SHA
    83a22a5 View commit details
    Browse the repository at this point in the history