diff options
Diffstat (limited to 'crypto/src/util/io/TeeInputStream.cs')
-rw-r--r-- | crypto/src/util/io/TeeInputStream.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/crypto/src/util/io/TeeInputStream.cs b/crypto/src/util/io/TeeInputStream.cs index b344be8a8..4b3203d71 100644 --- a/crypto/src/util/io/TeeInputStream.cs +++ b/crypto/src/util/io/TeeInputStream.cs @@ -18,11 +18,23 @@ namespace Org.BouncyCastle.Utilities.IO this.tee = tee; } - public override void Close() +#if PORTABLE + protected override void Disposing(bool disposing) + { + if (disposing) + { + Platform.Dispose(input); + Platform.Dispose(tee); + } + base.Dispose(disposing); + } +#else + public override void Close() { Platform.Dispose(input); Platform.Dispose(tee); } +#endif public override int Read(byte[] buf, int off, int len) { |