aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.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/SPConnectionController.m
parent5b55d8c4d24b0c24a5dc74a49cfd70448146d582 (diff)
downloadsequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.tar.gz
sequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.tar.bz2
sequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.zip
Addition to commit 2735e15b
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m21
1 files changed, 10 insertions, 11 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index 651d3538..79a15a19 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -317,8 +317,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2,
// Cancel the SSH tunnel if present
if (sshTunnel) {
[sshTunnel disconnect];
- [sshTunnel release];
- sshTunnel = nil;
+ SPClear(sshTunnel);
}
#ifndef SP_CODA
@@ -1848,7 +1847,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2,
mySQLConnection = nil;
}
- if (sshTunnel) [sshTunnel setConnectionStateChangeSelector:nil delegate:nil], [sshTunnel disconnect], [sshTunnel release];
+ if (sshTunnel) [sshTunnel setConnectionStateChangeSelector:nil delegate:nil], SPClear(sshTunnel);
}
#pragma mark -
@@ -1883,9 +1882,9 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2,
#endif
#ifndef SP_CODA
- [keychain release];
+ SPClear(keychain);
#endif
- [prefs release];
+ SPClear(prefs);
#ifndef SP_CODA
SPClear(folderImage);
@@ -1895,13 +1894,13 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2,
for (id retainedObject in nibObjectsToRelease) [retainedObject release];
- [nibObjectsToRelease release];
+ SPClear(nibObjectsToRelease);
- if (connectionKeychainID) [connectionKeychainID release];
- if (connectionKeychainItemName) [connectionKeychainItemName release];
- if (connectionKeychainItemAccount) [connectionKeychainItemAccount release];
- if (connectionSSHKeychainItemName) [connectionSSHKeychainItemName release];
- if (connectionSSHKeychainItemAccount) [connectionSSHKeychainItemAccount release];
+ if (connectionKeychainID) SPClear(connectionKeychainID);
+ if (connectionKeychainItemName) SPClear(connectionKeychainItemName);
+ if (connectionKeychainItemAccount) SPClear(connectionKeychainItemAccount);
+ if (connectionSSHKeychainItemName) SPClear(connectionSSHKeychainItemName);
+ if (connectionSSHKeychainItemAccount) SPClear(connectionSSHKeychainItemAccount);
#ifndef SP_CODA
if (currentFavorite) SPClear(currentFavorite);