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:
@@ -97,8 +97,8 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
if (package == null)
|
||||
continue;
|
||||
|
||||
var testMap = new Map(modData, package);
|
||||
TestMap(testMap, modData);
|
||||
using (var testMap = new Map(modData, package))
|
||||
TestMap(testMap, modData);
|
||||
}
|
||||
|
||||
if (errors > 0)
|
||||
|
||||
@@ -70,6 +70,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
|
||||
Action<string> afterSave = uid =>
|
||||
{
|
||||
map.Dispose();
|
||||
Game.LoadEditor(uid);
|
||||
|
||||
Ui.CloseWindow();
|
||||
|
||||
Reference in New Issue
Block a user