Skip to content

Commit

Permalink
Merge pull request #393 from tannergooding/main
Browse files Browse the repository at this point in the history
Ensure that we null out the stream for generate-multi-file
  • Loading branch information
tannergooding authored Sep 18, 2022
2 parents 2573a5a + 88f1686 commit 4ded4a2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sources/ClangSharp.PInvokeGenerator/PInvokeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,11 @@ static void GenerateTransparentStructs(PInvokeGenerator generator, Stream? strea
{
sw.WriteLine('}');
}

if (!leaveStreamOpen)
{
stream = null;
}
}

static (int srcSize, int dstSize, int sign) GetSizeAndSignOf(string type)
Expand Down

0 comments on commit 4ded4a2

Please sign in to comment.