Skip to content
Prev Previous commit
Next Next commit
Dispose safety
  • Loading branch information
amos402 committed Jul 29, 2020
commit 950676f3eef28cfe34c4b955e6d1975895f59896
3 changes: 2 additions & 1 deletion src/runtime/NewReference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public void Dispose()
{
return;
}
Runtime.XDecref(this.pointer);
Runtime.XDecref(pointer);
pointer = IntPtr.Zero;
}

/// <summary>
Expand Down