diff options
author | rowanbeentje <rowan@beent.je> | 2010-03-23 21:08:33 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-03-23 21:08:33 +0000 |
commit | c2351f2220ac01cac614de93bad05022d89d7790 (patch) | |
tree | 253cb24dac45eaa8a29924d3fe4017d1cad684ce /Source/SPUserManager.m | |
parent | 4755e7c7209582b09f59905540f459accc32acb3 (diff) | |
download | sequelpro-c2351f2220ac01cac614de93bad05022d89d7790.tar.gz sequelpro-c2351f2220ac01cac614de93bad05022d89d7790.tar.bz2 sequelpro-c2351f2220ac01cac614de93bad05022d89d7790.zip |
- Remove observers for key paths when dealloc'ing objects to fix later crashes when changing those keyvalues (eg changing query editor background colour after closing windows - http://log.sequelpro.com/view/44 )
- Fix a memory leak of a prefs reference in CMTextView
Diffstat (limited to 'Source/SPUserManager.m')
-rw-r--r-- | Source/SPUserManager.m | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/SPUserManager.m b/Source/SPUserManager.m index 84053fbb..35b4bcec 100644 --- a/Source/SPUserManager.m +++ b/Source/SPUserManager.m @@ -1313,10 +1313,8 @@ */ - (void)dealloc { - [[NSNotificationCenter defaultCenter] removeObserver:self - name:NSManagedObjectContextDidSaveNotification - object:nil]; - [managedObjectContext release]; + [[NSNotificationCenter defaultCenter] removeObserver:self]; + [managedObjectContext release]; [persistentStoreCoordinator release]; [managedObjectModel release]; [privColumnToGrantMap release]; |