massiveinteractive/mmvc — pull request #3 by pixelami (2012-11-11 18:02:23+00:00)
Title: Fixes memory leak caused by mediator and command instances being held by...

... injector.attendedToInjectees

References to executed Command instances and removed Mediators were being held in injector.attendedToInjectees preventing garbage collection of those objects and other objects that they might have been referencing.

Problem observed in flash and js targets.
Flash issues may be fixed by making sure all Dictionaries use weak references.
e.g.
attendedToInjectees = new Dictionary(true);

However, js target needs more explicit action to allow unused objects to be GC'd.