Skip to content

Commit 67635b7

Browse files
committed
remove finalizer assert for raw pointer value
1 parent 8611dde commit 67635b7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/runtime/pyobject.cs

-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ internal PyObject(in StolenReference reference)
9696
// when the managed wrapper is garbage-collected.
9797
~PyObject()
9898
{
99-
Debug.Assert(obj != IntPtr.Zero || this.GetType() != typeof(PyObject));
100-
10199
if (obj != IntPtr.Zero)
102100
{
103101

0 commit comments

Comments
 (0)