aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPNarrowDownCompletion.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-03-05 21:52:01 +0000
committerrowanbeentje <rowan@beent.je>2012-03-05 21:52:01 +0000
commitd5e20720cf7f991a691d9a03e7f895211b7c98ad (patch)
tree084208404fd826b53f1754f87ec30bae3d6b35cb /Source/SPNarrowDownCompletion.m
parent0c91f439a5b23e1b5a6d8139eb47aa5694e2925f (diff)
parent69db4915523c4c6cc2d8138a72456cb23f47b7ec (diff)
downloadsequelpro-d5e20720cf7f991a691d9a03e7f895211b7c98ad.tar.gz
sequelpro-d5e20720cf7f991a691d9a03e7f895211b7c98ad.tar.bz2
sequelpro-d5e20720cf7f991a691d9a03e7f895211b7c98ad.zip
- Bring SPMySQL Framework integration branch up to date with trunk
Diffstat (limited to 'Source/SPNarrowDownCompletion.m')
-rw-r--r--Source/SPNarrowDownCompletion.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m
index abc40a4e..5e7b5320 100644
--- a/Source/SPNarrowDownCompletion.m
+++ b/Source/SPNarrowDownCompletion.m
@@ -171,6 +171,13 @@
- (void)close
{
+
+ // Invalidate the timer now to prevent retain cycles preventing deallocation
+ if (stateTimer != nil) {
+ [stateTimer invalidate];
+ [stateTimer release];
+ }
+
closeMe = YES;
[theView setCompletionIsOpen:NO];
[super close];