Skip to main content
This topic has been closed for replies.

1 reply

Participant
May 27, 2013

The documentation for setTimeout() is incorrect. It claims that...

If you do not call the clearTimeout() function to cancel the setTimeout() call, the object containing the set timeout closure function will not be garbage collected.

However at least in the current version of Flash, this is not correct. Once the closure has been executed the reference will be removed and the object may be garbage collected.

See discussion at: http://stackoverflow.com/questions/16489536/does-flash-utils-settimeout-leak-memory-if-cleartimeout-is-not-called