aboutsummaryrefslogtreecommitdiffstats
path: root/Source/CustomQuery.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-03-23 21:08:33 +0000
committerrowanbeentje <rowan@beent.je>2010-03-23 21:08:33 +0000
commitc2351f2220ac01cac614de93bad05022d89d7790 (patch)
tree253cb24dac45eaa8a29924d3fe4017d1cad684ce /Source/CustomQuery.m
parent4755e7c7209582b09f59905540f459accc32acb3 (diff)
downloadsequelpro-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/CustomQuery.m')
-rw-r--r--Source/CustomQuery.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m
index f359f9d1..c1ffa4f0 100644
--- a/Source/CustomQuery.m
+++ b/Source/CustomQuery.m
@@ -3246,6 +3246,7 @@
- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
+ [prefs removeObserver:self forKeyPath:SPGlobalResultTableFont];
[usedQuery release];
[resultData release];