Commit b15594e9 authored by Ricard Fredin's avatar Ricard Fredin
Browse files

Added deallocation of observers to prevent an NSInternalInconsistencyException.

parent b6c9a57f
Loading
Loading
Loading
Loading
+2 −0
Changes for RCTVideo.m: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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