diff options
author | Sven Boemer <sbomer@gmail.com> | 2017-04-20 20:44:26 +0300 |
---|---|---|
committer | Sven Boemer <sbomer@gmail.com> | 2017-04-20 20:44:26 +0300 |
commit | 75de4f3a597c46bf918182991492370d10e941dd (patch) | |
tree | 537af36c380e35a3d5ecc2746d0cf504c92cf644 | |
parent | f980e1ff78049036312f6709861a19501e14c576 (diff) |
Dispose stream in WriteModuleTo on .NET Core
-rw-r--r-- | Mono.Cecil/AssemblyWriter.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Mono.Cecil/AssemblyWriter.cs b/Mono.Cecil/AssemblyWriter.cs index cf08434..537050b 100644 --- a/Mono.Cecil/AssemblyWriter.cs +++ b/Mono.Cecil/AssemblyWriter.cs @@ -122,9 +122,8 @@ namespace Mono.Cecil { #if !NET_CORE if (parameters.StrongNameKeyPair != null) CryptoService.StrongName (stream.value, writer, parameters.StrongNameKeyPair); - - stream.Dispose (); #endif + stream.Dispose (); } static void BuildMetadata (ModuleDefinition module, MetadataBuilder metadata) |