False positive for "Undetached delegate or data source"

Issue #107 resolved
Nikos Bitoulas created an issue

Hi Ali,

I have somewhere in my code this:

_subscriber.networkStatsDelegate = self;

This delegate is nilled out in a method (cleanupSubscriber) which is eventually called in dealloc:

-(void)dealloc {
    [self cleanupSession];
}

-(void)cleanupSession {
    [self cleanupSubscriber];
...
}

-(void)cleanupSubscriber {
    if (_subscriber) {
        _subscriber.networkStatsDelegate = nil;
        ...
    }
}

FauxPas thinks that the delegate is undetached though.

Comments (2)

  1. Log in to comment