summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-03-14 18:07:52 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-03-14 18:07:52 +0100
commit9e0df13ec7f54813129f5f9851cb233445455608 (patch)
treeb2b0961502901135f7e620fda1fe55ac14ee2cbe
parent931f2a21d6ba8af97cfe9ffc1020272bc97a7afe (diff)
timer: Forget about the block to help the GC
After a timer has been canceled we can forget about the block that was supposed to be canceled. It is only a matter of time until the timer will be discarded by the TimerScheduler.
-rw-r--r--Timer.st1
1 files changed, 1 insertions, 0 deletions
diff --git a/Timer.st b/Timer.st
index 2e7df99..b6a31f1 100644
--- a/Timer.st
+++ b/Timer.st
@@ -58,6 +58,7 @@ Object subclass: Timer [
<category: 'management'>
"Remember that the timer is gone."
schedule := nil.
+ block := nil.
]
isCanceled [