aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSSHTunnel.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-01-04 21:15:43 +0100
committerMax <post@wickenrode.com>2015-01-04 21:15:43 +0100
commite201531daa71ee1a2e2a0f927c619947126c9d3d (patch)
tree9b43cecf579b4318ec9b8f04c970a40c3232ba15 /Source/SPSSHTunnel.m
parent5b55d8c4d24b0c24a5dc74a49cfd70448146d582 (diff)
downloadsequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.tar.gz
sequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.tar.bz2
sequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.zip
Addition to commit 2735e15b
Diffstat (limited to 'Source/SPSSHTunnel.m')
-rw-r--r--Source/SPSSHTunnel.m29
1 files changed, 14 insertions, 15 deletions
diff --git a/Source/SPSSHTunnel.m b/Source/SPSSHTunnel.m
index c9a214ab..1c217986 100644
--- a/Source/SPSSHTunnel.m
+++ b/Source/SPSSHTunnel.m
@@ -711,8 +711,7 @@
SPKeychain *keychain = [[SPKeychain alloc] init];
[keychain addPassword:thePassword forName:@"SSH" account:currentKeyName withLabel:[NSString stringWithFormat:@"SSH: %@", currentKeyName]];
[keychain release];
- [currentKeyName release];
- currentKeyName = nil;
+ SPClear(currentKeyName);
}
}
@@ -729,22 +728,22 @@
[[NSNotificationCenter defaultCenter] removeObserver:self];
if (connectionState != SPMySQLProxyIdle) [self disconnect];
[NSObject cancelPreviousPerformRequestsWithTarget:self];
- [sshHost release];
- [sshLogin release];
- [remoteHost release];
- [tunnelConnectionName release];
- [tunnelConnectionVerifyHash release];
+ SPClear(sshHost);
+ SPClear(sshLogin);
+ SPClear(remoteHost);
+ SPClear(tunnelConnectionName);
+ SPClear(tunnelConnectionVerifyHash);
[tunnelConnection invalidate];
- [tunnelConnection release];
- [debugMessages release];
- [debugMessagesLock release];
+ SPClear(tunnelConnection);
+ SPClear(debugMessages);
+ SPClear(debugMessagesLock);
[answerAvailableLock tryLock];
[answerAvailableLock unlock];
- [answerAvailableLock release];
- if (password) [password release];
- if (keychainName) [keychainName release];
- if (keychainAccount) [keychainAccount release];
- if (identityFilePath) [identityFilePath release];
+ SPClear(answerAvailableLock);
+ if (password) SPClear(password);
+ if (keychainName) SPClear(keychainName);
+ if (keychainAccount) SPClear(keychainAccount);
+ if (identityFilePath) SPClear(identityFilePath);
// As this object is not a NSWindowController, use manual top-level nib item management
if (sshQuestionDialog) SPClear(sshQuestionDialog);