Fix analyzer findings

This commit is contained in:
Jonathan Schleifer 2017-10-15 17:04:58 +02:00
parent 57c875987c
commit 9d8e6f6761
No known key found for this signature in database
GPG key ID: 28D65178B37F33E3
4 changed files with 24 additions and 6 deletions

View file

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