DDLogFileManagerDefault can be deallocated while still KVO'ing itself #37

Closed
joein3d opened this Issue May 30, 2012 · 0 comments

Comments

Projects
None yet
2 participants
@joein3d

joein3d commented May 30, 2012

DDLogFileManagerDefault does a [self addObserver:self forKeyPath:@"maximumNumberOfLogFiles" options:kvoOptions context:nil]; in initWithLogsDirectory but never removes itself as an observer. Was able to fix by adding

  • (void)dealloc
    {
    [self removeObserver:self forKeyPath:@"maximumNumberOfLogFiles"];
    }

robbiehanson added a commit that referenced this issue May 31, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment