Add some missing Dispose calls, fix some Dispose implementations.

This commit is contained in:
RoosterDragon
2015-12-29 20:11:09 +00:00
parent 85ffd505c1
commit b5f24c3fa6
11 changed files with 52 additions and 18 deletions

View File

@@ -79,12 +79,12 @@ namespace OpenRA.Mods.Common.LoadScreens
r.EndFrame(new NullInputHandler());
}
public override void Dispose()
protected override void Dispose(bool disposing)
{
if (sheet != null)
if (disposing && sheet != null)
sheet.Dispose();
base.Dispose();
base.Dispose(disposing);
}
}
}