diff options
author | rowanbeentje <rowan@beent.je> | 2010-09-01 00:47:52 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-09-01 00:47:52 +0000 |
commit | a49f7140df2910a998241af13d9539aa9ad4161c (patch) | |
tree | 10b16f927bfda49c7c7396fe01e89e7af7b654c7 /Source/SPTableContent.m | |
parent | 26865c7ea66092de62009cc8f1212863326f4a49 (diff) | |
download | sequelpro-a49f7140df2910a998241af13d9539aa9ad4161c.tar.gz sequelpro-a49f7140df2910a998241af13d9539aa9ad4161c.tar.bz2 sequelpro-a49f7140df2910a998241af13d9539aa9ad4161c.zip |
- Ensure previous outstanding performSelector: requests are cancelled to avoid calls on released objects; this addresses http://spbug.com/l/1408, http://spbug.com/l/254 and http://spbug.com/l/781
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r-- | Source/SPTableContent.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index e2b1a0de..b57678e5 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -3896,6 +3896,10 @@ - (void)dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; + + // Cancel previous performSelector: requests on ourselves and the table view + // to prevent crashes for deferred actions + [NSObject cancelPreviousPerformRequestsWithTarget:self]; [NSObject cancelPreviousPerformRequestsWithTarget:tableContentView]; [self clearTableLoadTimer]; |