THObserversAndBinders icon indicating copy to clipboard operation
THObserversAndBinders copied to clipboard

THBinder tries to update bindings while it is being deallocated

Open 5sw opened this issue 11 years ago • 0 comments

I was using the release 1.0.0 version in an non-ARC project (via cocoapods, THObserversAndBinders is compiled with ARC) and I found a strange crash. After debugging it turned out that the binder was updating its target value while it was being deallocated.

Adding this in THBinder.m fixes the issue for me:

- (void)dealloc
{
    [_observer stopObserving];
}

5sw avatar Feb 07 '14 15:02 5sw