Merge pull request #291 from Cordazar/bug/observers-not-deallocating
Added deallocation of observers
This commit is contained in:
commit
4e63dcbaae
@ -126,6 +126,8 @@ static NSString *const playbackRate = @"rate";
|
||||
- (void)dealloc
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
[self removePlayerItemObservers];
|
||||
[_player removeObserver:self forKeyPath:playbackRate context:nil];
|
||||
}
|
||||
|
||||
#pragma mark - App lifecycle handlers
|
||||
|
Loading…
Reference in New Issue
Block a user