Overrided Dispose() in TrueCraftGame to dispose of game components

This commit is contained in:
William Moorehouse 2015-06-14 12:36:38 -04:00
parent 18c49adaf3
commit 8ba0b6a5ca

View File

@ -389,5 +389,16 @@ namespace TrueCraft.Client
base.Draw(gameTime);
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
KeyboardComponent.Dispose();
MouseComponent.Dispose();
}
base.Dispose(disposing);
}
}
}