Overrided Dispose() in TrueCraftGame to dispose of game components
This commit is contained in:
parent
18c49adaf3
commit
8ba0b6a5ca
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user