diff options
Diffstat (limited to 'crypto/src/bcpg/BcpgInputStream.cs')
-rw-r--r-- | crypto/src/bcpg/BcpgInputStream.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/src/bcpg/BcpgInputStream.cs b/crypto/src/bcpg/BcpgInputStream.cs index 37c259d42..59dd548ca 100644 --- a/crypto/src/bcpg/BcpgInputStream.cs +++ b/crypto/src/bcpg/BcpgInputStream.cs @@ -247,11 +247,22 @@ namespace Org.BouncyCastle.Bcpg } } +#if PORTABLE + protected override void Disposing(bool disposing) + { + if (disposing) + { + Platform.Dispose(m_in); + } + base.Dispose(disposing); + } +#else public override void Close() { Platform.Dispose(m_in); base.Close(); } +#endif /// <summary> /// A stream that overlays our input stream, allowing the user to only read a segment of it. |