From 0ff97264a685fba438b81238f692a4cbb942011f Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Sun, 8 Nov 2015 12:43:15 +0700 Subject: Tighten up the correspondence b/w Close/Dispose --- crypto/src/openpgp/PgpCompressedDataGenerator.cs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crypto/src/openpgp') diff --git a/crypto/src/openpgp/PgpCompressedDataGenerator.cs b/crypto/src/openpgp/PgpCompressedDataGenerator.cs index 2d20601f0..51b645279 100644 --- a/crypto/src/openpgp/PgpCompressedDataGenerator.cs +++ b/crypto/src/openpgp/PgpCompressedDataGenerator.cs @@ -179,6 +179,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp if (disposing) { Finish(); + return; } base.Dispose(disposing); } @@ -204,6 +205,7 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp { Finish(); End(); + return; } base.Dispose(disposing); } -- cgit 1.4.1