aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPTableContent.m4
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];