mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-12 22:58:01 +03:00
Updated Generator to use disposable TakeMemory correctly
This commit is contained in:
parent
ba0f4d3e10
commit
9dd286eed4
@ -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();" );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user