aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPNarrowDownCompletion.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-03-04 19:05:21 +0000
committerrowanbeentje <rowan@beent.je>2012-03-04 19:05:21 +0000
commit69db4915523c4c6cc2d8138a72456cb23f47b7ec (patch)
tree23e7749eee5d224fe1fdaed521778bfb404b96b5 /Source/SPNarrowDownCompletion.m
parent05f61308cc726f0801943fde0926a30e3f209d6d (diff)
downloadsequelpro-69db4915523c4c6cc2d8138a72456cb23f47b7ec.tar.gz
sequelpro-69db4915523c4c6cc2d8138a72456cb23f47b7ec.tar.bz2
sequelpro-69db4915523c4c6cc2d8138a72456cb23f47b7ec.zip
- Fix a retain cycle in SPNarrowDownCompletion popups while the structure is being retrieved
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 9079954d..6506c5da 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];