Timer and setInterval leaks memory

Set up a timer to tick every second (or an interval). Monitor the memory usage of your application.

You’ll see that it tags on like 10kb to the memory usage every 5-6 ticks. This never gets freed.

Had something really simple like;


		public function main() 
		{
			_timer = new Timer(1000);
			_timer.addEventListener(TimerEvent.TIMER, report, false,0, true);
			_timer.start();
		}
		private function report($e:TimerEvent):void
		{
		
		}

And nothing in the fla. So it literally does nothing but tick every 1 seconds and this increases the memory usage with 10-15kb every 4-5 seconds. I let it run for an hour and it never gets freed.

What sort of evil BS is this :frowning: