diff options
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r-- | Source/SPConnectionController.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 2c5da3c7..8d09e0d5 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -117,9 +117,9 @@ { [keychain release]; [prefs release]; - [favorites release]; + if (favorites) [favorites release]; if (mySQLConnection) [mySQLConnection release]; - if (sshTunnel) [sshTunnel disconnect], [sshTunnel release]; + if (sshTunnel) [sshTunnel setConnectionStateChangeSelector:nil delegate:nil], [sshTunnel disconnect], [sshTunnel release]; if (connectionKeychainItemName) [connectionKeychainItemName release]; if (connectionKeychainItemAccount) [connectionKeychainItemAccount release]; if (connectionSSHKeychainItemName) [connectionSSHKeychainItemName release]; |