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
{
OWSLogVerbose(@"");
[[NSNotificationCenter defaultCenter] removeObserver:self];
}

@ -341,7 +341,7 @@ static NSString *const kSealedSenderInfoURL = @"https://signal.org/blog/sealed-s
customRowHeight:UITableViewAutomaticDimension
actionBlock:^{
NSURL *url = [NSURL URLWithString:kSealedSenderInfoURL];
OWSAssertDebug(url);
OWSCAssertDebug(url);
[UIApplication.sharedApplication openURL:url];
}]];
@ -374,7 +374,7 @@ static NSString *const kSealedSenderInfoURL = @"https://signal.org/blog/sealed-s
@"sealed_sender_learn_more"]
actionBlock:^{
NSURL *url = [NSURL URLWithString:kSealedSenderInfoURL];
OWSAssertDebug(url);
OWSCAssertDebug(url);
[UIApplication.sharedApplication openURL:url];
}]];
[contents addSection:unidentifiedDeliveryLearnMoreSection];

Loading…
Cancel
Save