diff --git a/iOS/AboutController.m b/iOS/AboutController.m index 95cff4f..a8d8ebe 100644 --- a/iOS/AboutController.m +++ b/iOS/AboutController.m @@ -46,7 +46,7 @@ static NSString *aboutHTMLTemplate = @" scrypt-pwgen {version}" @"" @"
" @" scrypt-pwgen is free software and the source code is available at " @@ -62,6 +62,8 @@ static NSString *aboutHTMLTemplate = @implementation AboutController - (void)viewDidLoad { + [super viewDidLoad]; + self.automaticallyAdjustsScrollViewInsets = NO; NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; diff --git a/iOS/AppDelegate.m b/iOS/AppDelegate.m index 1cc5afe..d5a9eae 100644 --- a/iOS/AppDelegate.m +++ b/iOS/AppDelegate.m @@ -23,4 +23,10 @@ #import "AppDelegate.h" @implementation AppDelegate +- (void)dealloc +{ + [_window release]; + + [super dealloc]; +} @end diff --git a/iOS/MainViewController.m b/iOS/MainViewController.m index f651517..3fcf9ce 100644 --- a/iOS/MainViewController.m +++ b/iOS/MainViewController.m @@ -30,15 +30,18 @@ @implementation MainViewController - (void)viewDidLoad { + [super viewDidLoad]; + _siteStorage = [[SiteStorage alloc] init]; [self reset]; } - (void)dealloc { - [_siteStorage release]; - [_tableView release]; [_sites release]; + [_siteStorage release]; + [_searchBar release]; + [_tableView release]; [super dealloc]; } diff --git a/iOS/ShowDetailsController.m b/iOS/ShowDetailsController.m index d57ee8c..3184716 100644 --- a/iOS/ShowDetailsController.m +++ b/iOS/ShowDetailsController.m @@ -58,15 +58,20 @@ clearNSMutableString(NSMutableString *string) [_lengthField release]; [_legacySwitch release]; [_passphraseField release]; + [_mainViewController release]; [super dealloc]; } - (void)viewWillAppear: (BOOL)animated { - SiteStorage *siteStorage = self.mainViewController.siteStorage; - NSIndexPath *indexPath = - self.mainViewController.tableView.indexPathForSelectedRow; + SiteStorage *siteStorage; + NSIndexPath *indexPath; + + [super viewWillAppear: animated]; + + siteStorage = self.mainViewController.siteStorage; + indexPath = self.mainViewController.tableView.indexPathForSelectedRow; [_name release]; _name = [self.mainViewController.sites[indexPath.row] retain]; @@ -83,6 +88,8 @@ clearNSMutableString(NSMutableString *string) - (void)viewDidAppear: (BOOL)animated { + [super viewDidAppear: animated]; + [self.passphraseField becomeFirstResponder]; }