diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-08 12:43:15 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2015-11-08 12:43:15 +0700 |
commit | 0ff97264a685fba438b81238f692a4cbb942011f (patch) | |
tree | 2f2527937d551aad5ce0abc9351450d515cb9c2a /crypto/src/util/io | |
parent | DateTime portability changes for tests under PORTABLE (diff) | |
download | BouncyCastle.NET-ed25519-0ff97264a685fba438b81238f692a4cbb942011f.tar.xz |
Tighten up the correspondence b/w Close/Dispose
Diffstat (limited to 'crypto/src/util/io')
-rw-r--r-- | crypto/src/util/io/BaseInputStream.cs | 1 | ||||
-rw-r--r-- | crypto/src/util/io/BaseOutputStream.cs | 1 | ||||
-rw-r--r-- | crypto/src/util/io/FilterStream.cs | 1 | ||||
-rw-r--r-- | crypto/src/util/io/TeeInputStream.cs | 1 | ||||
-rw-r--r-- | crypto/src/util/io/TeeOutputStream.cs | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/crypto/src/util/io/BaseInputStream.cs b/crypto/src/util/io/BaseInputStream.cs index 0a6e19307..a5613d801 100644 --- a/crypto/src/util/io/BaseInputStream.cs +++ b/crypto/src/util/io/BaseInputStream.cs @@ -25,6 +25,7 @@ namespace Org.BouncyCastle.Utilities.IO public override void Close() { closed = true; + base.Close(); } #endif diff --git a/crypto/src/util/io/BaseOutputStream.cs b/crypto/src/util/io/BaseOutputStream.cs index 0b6daa6a5..a0608d111 100644 --- a/crypto/src/util/io/BaseOutputStream.cs +++ b/crypto/src/util/io/BaseOutputStream.cs @@ -25,6 +25,7 @@ namespace Org.BouncyCastle.Utilities.IO public override void Close() { closed = true; + base.Close(); } #endif diff --git a/crypto/src/util/io/FilterStream.cs b/crypto/src/util/io/FilterStream.cs index fe359de90..a92dee3e5 100644 --- a/crypto/src/util/io/FilterStream.cs +++ b/crypto/src/util/io/FilterStream.cs @@ -42,6 +42,7 @@ namespace Org.BouncyCastle.Utilities.IO public override void Close() { Platform.Dispose(s); + base.Close(); } #endif public override void Flush() diff --git a/crypto/src/util/io/TeeInputStream.cs b/crypto/src/util/io/TeeInputStream.cs index e5fc10157..6996f3fbb 100644 --- a/crypto/src/util/io/TeeInputStream.cs +++ b/crypto/src/util/io/TeeInputStream.cs @@ -33,6 +33,7 @@ namespace Org.BouncyCastle.Utilities.IO { Platform.Dispose(input); Platform.Dispose(tee); + base.Close(); } #endif diff --git a/crypto/src/util/io/TeeOutputStream.cs b/crypto/src/util/io/TeeOutputStream.cs index 82407d9fa..a6c7fd5b5 100644 --- a/crypto/src/util/io/TeeOutputStream.cs +++ b/crypto/src/util/io/TeeOutputStream.cs @@ -33,6 +33,7 @@ namespace Org.BouncyCastle.Utilities.IO { Platform.Dispose(output); Platform.Dispose(tee); + base.Close(); } #endif |