Dispose SequenceSet when we're done with it.

Utility rules that do something on a map and exit
are left without explicit disposing, as they will
be cleaned up immediately anyway.
This commit is contained in:
Paul Chote
2023-03-08 08:23:04 +00:00
committed by Gustas
parent c35ab081ff
commit f0cf728825
6 changed files with 17 additions and 19 deletions

View File

@@ -187,13 +187,8 @@ namespace OpenRA
Cursor.SetCursor(null);
BeforeGameStart();
Map map;
using (new PerfTimer("PrepareMap"))
map = ModData.PrepareMap(mapUID);
using (new PerfTimer("NewWorld"))
OrderManager.World = new World(ModData, map, OrderManager, type);
OrderManager.World = new World(mapUID, ModData, OrderManager, type);
OrderManager.World.GameOver += FinishBenchmark;