From 54ea11baddc728f36c806e4498d156f27afb71e7 Mon Sep 17 00:00:00 2001 From: Josh Habdas Date: Fri, 26 Jun 2015 13:41:41 -0500 Subject: [PATCH] Remove Notification Center observers on dealloc --- RCTVideo.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RCTVideo.m b/RCTVideo.m index e7e288a5..5b6b425f 100644 --- a/RCTVideo.m +++ b/RCTVideo.m @@ -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