diff options
author | Jb Evain <jbevain@gmail.com> | 2017-04-20 21:10:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-20 21:10:44 +0300 |
commit | d047b69cf0445c108ca9ff0f57d378fbddb82640 (patch) | |
tree | 537af36c380e35a3d5ecc2746d0cf504c92cf644 | |
parent | f980e1ff78049036312f6709861a19501e14c576 (diff) | |
parent | 75de4f3a597c46bf918182991492370d10e941dd (diff) |
Merge pull request #381 from sbomer/disposeFix
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) |