We need to copy this list as disposing items in it causes it to be modified.
Merge pull request #2383 from danzel/releaseresources

Fix crash in DisposeAll