aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPNarrowDownCompletion.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPNarrowDownCompletion.m')
-rw-r--r--Source/SPNarrowDownCompletion.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPNarrowDownCompletion.m b/Source/SPNarrowDownCompletion.m
index 4dc2711d..db3f5e3a 100644
--- a/Source/SPNarrowDownCompletion.m
+++ b/Source/SPNarrowDownCompletion.m
@@ -153,11 +153,11 @@
- (void)dealloc
{
[NSObject cancelPreviousPerformRequestsWithTarget:self];
- if(stateTimer != nil) {
+ if (stateTimer != nil) {
[stateTimer invalidate];
[stateTimer release];
+ stateTimer = nil;
}
- stateTimer = nil;
if (staticPrefix) [staticPrefix release];
[mutablePrefix release];
[textualInputCharacters release];
@@ -178,6 +178,7 @@
if (stateTimer != nil) {
[stateTimer invalidate];
[stateTimer release];
+ stateTimer = nil;
}
closeMe = YES;