aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPNarrowDownCompletion.m
diff options
context:
space:
mode:
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];