mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Use StreamWriter.Dispose() instead of Close()
This commit is contained in:
@@ -1701,7 +1701,7 @@ namespace System.Management.Automation
|
||||
// streamWriter is present, only if we call Start method
|
||||
if (_streamWriter != null)
|
||||
{
|
||||
_streamWriter.Close();
|
||||
_streamWriter.Dispose();
|
||||
_streamWriter = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user