diff options
author | rowanbeentje <rowan@beent.je> | 2012-03-04 19:05:21 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-03-04 19:05:21 +0000 |
commit | 69db4915523c4c6cc2d8138a72456cb23f47b7ec (patch) | |
tree | 23e7749eee5d224fe1fdaed521778bfb404b96b5 /Source | |
parent | 05f61308cc726f0801943fde0926a30e3f209d6d (diff) | |
download | sequelpro-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')
-rw-r--r-- | Source/SPNarrowDownCompletion.m | 7 |
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]; |