Commit 54ea11ba authored by Josh Habdas's avatar Josh Habdas
Browse files

Remove Notification Center observers on dealloc

parent d7d4ebdc
Loading
Loading
Loading
Loading
+5 −0
Changes for RCTVideo.m: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -69,6 +69,11 @@ static NSString *const statusKeyPath = @"status";
  return self;
}

- (void)dealloc
{
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

#pragma mark - App lifecycle handlers

- (void)applicationWillResignActive:(NSNotification *)notification