Added deallocation of observers to prevent an NSInternalInconsistencyException.
This commit is contained in:
parent
b6c9a57ff2
commit
b15594e90a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user