Fixed IDisposable implementation and usage.
- Implement IDisposable interface correctly, with sealed classes where possible for simplicity. - Add using statement around undisposed local variables.
This commit is contained in:
@@ -504,6 +504,8 @@ namespace OpenRA
|
||||
// Ensure that the active replay is properly saved
|
||||
if (orderManager != null)
|
||||
orderManager.Dispose();
|
||||
|
||||
Renderer.Device.Dispose();
|
||||
|
||||
OnQuit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user