diff options
Diffstat (limited to 'crypto/src/util/zlib/ZInflaterInputStream.cs')
-rw-r--r-- | crypto/src/util/zlib/ZInflaterInputStream.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/crypto/src/util/zlib/ZInflaterInputStream.cs b/crypto/src/util/zlib/ZInflaterInputStream.cs index 170596e63..df51fc878 100644 --- a/crypto/src/util/zlib/ZInflaterInputStream.cs +++ b/crypto/src/util/zlib/ZInflaterInputStream.cs @@ -114,10 +114,22 @@ namespace Org.BouncyCastle.Utilities.Zlib { public override void WriteByte(byte b) { } - public override void Close() { +#if PORTABLE + protected override void Disposing(bool disposing) + { + if (disposing) + { + Platform.Dispose(inp); + } + base.Dispose(disposing); + } +#else + public override void Close() + { Platform.Dispose(inp); } - +#endif + public override int ReadByte() { if(Read(buf1, 0, 1)<=0) return -1; |