Fix memory leaks.

pull/2/head
Matthew Chen 7 years ago
parent 908fe1d0c9
commit 40c9c196aa

@ -34,6 +34,8 @@ int const OWSLinkedDevicesTableViewControllerSectionAddDevice = 1;
- (void)dealloc - (void)dealloc
{ {
OWSLogVerbose(@"");
[[NSNotificationCenter defaultCenter] removeObserver:self]; [[NSNotificationCenter defaultCenter] removeObserver:self];
} }

@ -185,7 +185,7 @@ static NSString *const kSealedSenderInfoURL = @"https://signal.org/blog/sealed-s
target:weakSelf target:weakSelf
selector:@selector(didToggleScreenSecuritySwitch:)]]; selector:@selector(didToggleScreenSecuritySwitch:)]];
[contents addSection:screenSecuritySection]; [contents addSection:screenSecuritySection];
// Allow calls to connect directly vs. using TURN exclusively // Allow calls to connect directly vs. using TURN exclusively
OWSTableSection *callingSection = [OWSTableSection new]; OWSTableSection *callingSection = [OWSTableSection new];
callingSection.headerTitle callingSection.headerTitle
@ -341,7 +341,7 @@ static NSString *const kSealedSenderInfoURL = @"https://signal.org/blog/sealed-s
customRowHeight:UITableViewAutomaticDimension customRowHeight:UITableViewAutomaticDimension
actionBlock:^{ actionBlock:^{
NSURL *url = [NSURL URLWithString:kSealedSenderInfoURL]; NSURL *url = [NSURL URLWithString:kSealedSenderInfoURL];
OWSAssertDebug(url); OWSCAssertDebug(url);
[UIApplication.sharedApplication openURL:url]; [UIApplication.sharedApplication openURL:url];
}]]; }]];
@ -374,7 +374,7 @@ static NSString *const kSealedSenderInfoURL = @"https://signal.org/blog/sealed-s
@"sealed_sender_learn_more"] @"sealed_sender_learn_more"]
actionBlock:^{ actionBlock:^{
NSURL *url = [NSURL URLWithString:kSealedSenderInfoURL]; NSURL *url = [NSURL URLWithString:kSealedSenderInfoURL];
OWSAssertDebug(url); OWSCAssertDebug(url);
[UIApplication.sharedApplication openURL:url]; [UIApplication.sharedApplication openURL:url];
}]]; }]];
[contents addSection:unidentifiedDeliveryLearnMoreSection]; [contents addSection:unidentifiedDeliveryLearnMoreSection];

Loading…
Cancel
Save