From 40c9c196aa6516465e9f9e61c9a8f800b00efcff Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Thu, 21 Mar 2019 11:12:04 -0400 Subject: [PATCH] Fix memory leaks. --- .../AppSettings/OWSLinkedDevicesTableViewController.m | 2 ++ .../AppSettings/PrivacySettingsTableViewController.m | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Signal/src/ViewControllers/AppSettings/OWSLinkedDevicesTableViewController.m b/Signal/src/ViewControllers/AppSettings/OWSLinkedDevicesTableViewController.m index a7cf7684f..0e5adbfb7 100644 --- a/Signal/src/ViewControllers/AppSettings/OWSLinkedDevicesTableViewController.m +++ b/Signal/src/ViewControllers/AppSettings/OWSLinkedDevicesTableViewController.m @@ -34,6 +34,8 @@ int const OWSLinkedDevicesTableViewControllerSectionAddDevice = 1; - (void)dealloc { + OWSLogVerbose(@""); + [[NSNotificationCenter defaultCenter] removeObserver:self]; } diff --git a/Signal/src/ViewControllers/AppSettings/PrivacySettingsTableViewController.m b/Signal/src/ViewControllers/AppSettings/PrivacySettingsTableViewController.m index 561966edc..90978af3b 100644 --- a/Signal/src/ViewControllers/AppSettings/PrivacySettingsTableViewController.m +++ b/Signal/src/ViewControllers/AppSettings/PrivacySettingsTableViewController.m @@ -185,7 +185,7 @@ static NSString *const kSealedSenderInfoURL = @"https://signal.org/blog/sealed-s target:weakSelf selector:@selector(didToggleScreenSecuritySwitch:)]]; [contents addSection:screenSecuritySection]; - + // Allow calls to connect directly vs. using TURN exclusively OWSTableSection *callingSection = [OWSTableSection new]; callingSection.headerTitle @@ -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];