mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Remove incorrectly implemented finalizer (#14246)
This commit is contained in:
@@ -627,18 +627,6 @@ namespace System.Management.Automation.Internal
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Destructor.
|
||||
/// </summary>
|
||||
~PSRSACryptoServiceProvider()
|
||||
{
|
||||
// When Dispose() is called, GC.SuppressFinalize()
|
||||
// is called and therefore this finalizer will not
|
||||
// be invoked. Hence this is run only on process
|
||||
// shutdown
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
#endregion IDisposable
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user