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];
} }

@ -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