Skip to content

Commit 2dd5ee6

Browse files
committed
Do not clean tpHandle in ClassBase.tp_clear - it might be used in tp_dealloc
fixes #1566
1 parent d975d5f commit 2dd5ee6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/runtime/classbase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@ public static int tp_clear(IntPtr ob)
373373
return baseClearResult;
374374
}
375375
}
376-
if (self is not null) self.tpHandle = IntPtr.Zero;
377376
return 0;
378377
}
379378

0 commit comments

Comments
 (0)