Skip to content

Commit

Permalink
Merge pull request #304 from jasonwoods-7/master
Browse files Browse the repository at this point in the history
fix for when a weaver has an AfterWeaving method.
  • Loading branch information
SimonCropp committed Apr 24, 2017
2 parents 2ebf9ef + 17c1348 commit 33470a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FodyIsolated.Tests/FakeModuleWeaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ public class FakeModuleWeaver
public void Execute()
{
}

public void AfterWeaving()
{
}
}
3 changes: 3 additions & 0 deletions FodyIsolated/InnerWeaver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ public void Execute()
if (weaverInstances
.Any(_ => _.WeaverDelegate.AfterWeavingExecute != null))
{
ModuleDefinition?.Dispose();
SymbolStream?.Dispose();

ReadModule();
WriteModule();
}
Expand Down

0 comments on commit 33470a3

Please sign in to comment.