mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-04-16 06:12:28 +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 )
|
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