aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-04-14 14:33:08 +0000
committerrowanbeentje <rowan@beent.je>2012-04-14 14:33:08 +0000
commit3e85e46ba68f19b96a1e461e3fe039f4f61d6526 (patch)
treead369c93a1e0f98384c56429c59fc5c8d99a31fd /Source
parent5ce91070b5ff229de819d5e4b68fcae72297f634 (diff)
downloadsequelpro-3e85e46ba68f19b96a1e461e3fe039f4f61d6526.tar.gz
sequelpro-3e85e46ba68f19b96a1e461e3fe039f4f61d6526.tar.bz2
sequelpro-3e85e46ba68f19b96a1e461e3fe039f4f61d6526.zip
- Fix crashes on use of custom query autocompletion when the database structure is still being retrieved
Diffstat (limited to 'Source')
-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;