Merge pull request #8568 from Mailaender/dipsose-world-music

Fixed music and video leaking after world disposal
This commit is contained in:
reaperrr
2015-06-27 14:21:39 +02:00

View File

@@ -387,6 +387,9 @@ namespace OpenRA
frameEndActions.Clear(); frameEndActions.Clear();
Sound.StopMusic();
Sound.StopVideo();
// Dispose newer actors first, and the world actor last // Dispose newer actors first, and the world actor last
foreach (var a in actors.Reverse()) foreach (var a in actors.Reverse())
a.Dispose(); a.Dispose();