Commit 6e4d4b0b authored by Brent Vatne's avatar Brent Vatne
Browse files

Merge pull request #65 from jhabdas/master

Remove Notification Center observers on dealloc
parents d7d4ebdc 54ea11ba
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