Updated Generator to use disposable TakeMemory correctly

This commit is contained in:
Juan Pablo Arce 2021-08-30 22:13:31 -03:00
parent ba0f4d3e10
commit 9dd286eed4

View File

@ -152,7 +152,7 @@ namespace Generator
{
if ( arg is FetchStringType sb )
{
WriteLine( $"IntPtr mem{sb.VarName} = Helpers.TakeMemory();" );
WriteLine( $"using var mem{sb.VarName} = Helpers.TakeMemory();" );
}
}