Added deallocation of observers to prevent an NSInternalInconsistencyException.
This commit is contained in:
@@ -126,6 +126,8 @@ static NSString *const playbackRate = @"rate";
|
|||||||
- (void)dealloc
|
- (void)dealloc
|
||||||
{
|
{
|
||||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||||
|
[self removePlayerItemObservers];
|
||||||
|
[_player removeObserver:self forKeyPath:playbackRate context:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma mark - App lifecycle handlers
|
#pragma mark - App lifecycle handlers
|
||||||
|
Reference in New Issue
Block a user