aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPConnectionController.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index 2af457ec..7eb15dd6 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -1509,7 +1509,10 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2,
[nibObjectsToRelease release];
- if (mySQLConnection) [mySQLConnection release];
+ if (mySQLConnection) {
+ [mySQLConnection setDelegate:nil];
+ [mySQLConnection release];
+ }
if (sshTunnel) [sshTunnel setConnectionStateChangeSelector:nil delegate:nil], [sshTunnel disconnect], [sshTunnel release];
if (connectionKeychainID) [connectionKeychainID release];