Index: iOS/AboutController.m ================================================================== --- iOS/AboutController.m +++ iOS/AboutController.m @@ -44,11 +44,11 @@ @"" @"
" @" scrypt-pwgen {version}" @"
" @"" @"

" @" scrypt-pwgen is free software and the source code is available at " @" here." @"

" @@ -60,10 +60,12 @@ @""; @implementation AboutController - (void)viewDidLoad { + [super viewDidLoad]; + self.automaticallyAdjustsScrollViewInsets = NO; NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; NSString *version = infoDictionary[@"CFBundleShortVersionString"]; NSString *aboutHTML = [aboutHTMLTemplate Index: iOS/AppDelegate.m ================================================================== --- iOS/AppDelegate.m +++ iOS/AppDelegate.m @@ -21,6 +21,12 @@ */ #import "AppDelegate.h" @implementation AppDelegate +- (void)dealloc +{ + [_window release]; + + [super dealloc]; +} @end Index: iOS/MainViewController.m ================================================================== --- iOS/MainViewController.m +++ iOS/MainViewController.m @@ -28,19 +28,22 @@ #import "ShowDetailsController.h" @implementation MainViewController - (void)viewDidLoad { + [super viewDidLoad]; + _siteStorage = [[SiteStorage alloc] init]; [self reset]; } - (void)dealloc { + [_sites release]; [_siteStorage release]; + [_searchBar release]; [_tableView release]; - [_sites release]; [super dealloc]; } - (void)reset Index: iOS/ShowDetailsController.m ================================================================== --- iOS/ShowDetailsController.m +++ iOS/ShowDetailsController.m @@ -56,19 +56,24 @@ [_name release]; [_nameField release]; [_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]; _length = [siteStorage lengthForSite: _name]; _legacy = [siteStorage isSiteLegacy: _name]; @@ -81,10 +86,12 @@ animated: YES]; } - (void)viewDidAppear: (BOOL)animated { + [super viewDidAppear: animated]; + [self.passphraseField becomeFirstResponder]; } - (BOOL)textFieldShouldReturn: (UITextField *)textField {