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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user