Do not clean tpHandle in ClassBase.tp_clear - it might be used in tp_… · pythonnet/pythonnet@1e91a16

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 1e91a16

committed

Do not clean tpHandle in ClassBase.tp_clear - it might be used in tp_dealloc

1 parent d975d5f commit 1e91a16

File tree

1 file changed

+

0

-

1

lines changed

1 file changed

+

0

-

1

lines changed

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)