residualvm/residualvm — pull request #785 by inguin (2013-12-08 20:25:30+00:00)
Title: EMI: Avoid deleting pool objects while iterating

As discussed in IRC: Apparently it is not safe to delete pool objects while iterating the pool with foreach(). Collect the objects to be deleted in a list and destroy them afterwards.