diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-09 01:13:27 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-11-09 01:13:27 +0700 |
commit | a8a17fd70fc8df3ca7402323ad5c4f36b25cb806 (patch) | |
tree | 9b276b62885505abbb899d17744b65b912072140 /crypto/src/tls/RecordStream.cs | |
parent | Primes improvements (diff) | |
download | BouncyCastle.NET-ed25519-a8a17fd70fc8df3ca7402323ad5c4f36b25cb806.tar.xz |
Dispose cleanup
- IDisposable for PemReader, PemWriter, IStreamGenerator
Diffstat (limited to 'crypto/src/tls/RecordStream.cs')
-rw-r--r-- | crypto/src/tls/RecordStream.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/tls/RecordStream.cs b/crypto/src/tls/RecordStream.cs index a5926d05b..8dc2a30ce 100644 --- a/crypto/src/tls/RecordStream.cs +++ b/crypto/src/tls/RecordStream.cs @@ -359,7 +359,7 @@ namespace Org.BouncyCastle.Tls IOException io = null; try { - Platform.Dispose(m_input); + m_input.Dispose(); } catch (IOException e) { @@ -368,7 +368,7 @@ namespace Org.BouncyCastle.Tls try { - Platform.Dispose(m_output); + m_output.Dispose(); } catch (IOException e) { |