diff options
author | rowanbeentje <rowan@beent.je> | 2009-07-15 00:23:13 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-07-15 00:23:13 +0000 |
commit | aa2f8b4cbddb68b4aadd6544eb754c8468746633 (patch) | |
tree | cc4ca55dff6bcdda5480d7bb4d2fcdc16cb58517 /Source/SPConnectionController.m | |
parent | 0612652448f32e620a96e923a44b463fa1b9e0dc (diff) | |
download | sequelpro-aa2f8b4cbddb68b4aadd6544eb754c8468746633.tar.gz sequelpro-aa2f8b4cbddb68b4aadd6544eb754c8468746633.tar.bz2 sequelpro-aa2f8b4cbddb68b4aadd6544eb754c8468746633.zip |
- Make the DBView window the document window. This allows the document to be closed when the window is closed, freeing the document's memory
- Update a number of dealloc methods to include more retained memory, and to avoid releasing non-retained memory
- Remove notification observers and delegates where appropriate to avoid issues after document closing
- Fix a couple of memory leaks
- Support window cascading for all windows past the first, using the first window as the autosave window
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]; |