diff --git a/Cesium.Runtime/StdIoFunctions.cs b/Cesium.Runtime/StdIoFunctions.cs index d8183715..8919f8cf 100644 --- a/Cesium.Runtime/StdIoFunctions.cs +++ b/Cesium.Runtime/StdIoFunctions.cs @@ -698,7 +698,7 @@ internal static IntPtr AddStream(StreamHandle stream) var gch = GCHandle.Alloc(stream); var handel = GCHandle.ToIntPtr(gch); - var ptr = Marshal.AllocHGlobal(sizeof(GCHandle)); + var ptr = Marshal.AllocHGlobal(sizeof(IntPtr)); Marshal.WriteIntPtr(ptr, handel); return ptr; }