1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/bzip2/src/CBZip2OutputStream.cs b/crypto/bzip2/src/CBZip2OutputStream.cs
index bf43a6a6c..73e6979d8 100644
--- a/crypto/bzip2/src/CBZip2OutputStream.cs
+++ b/crypto/bzip2/src/CBZip2OutputStream.cs
@@ -25,6 +25,8 @@
using System;
using System.IO;
+using Org.BouncyCastle.Utilities;
+
namespace Org.BouncyCastle.Apache.Bzip2
{
/**
@@ -393,7 +395,7 @@ namespace Org.BouncyCastle.Apache.Bzip2
closed = true;
base.Close();
- bsStream.Close();
+ Platform.Dispose(this.bsStream);
}
public void Finish() {
|