Skip to content

Commit a2c030c

Browse files
committed
Fix tp_clear for OverloadMapper
1 parent 5278af4 commit a2c030c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/runtime/Types/OverloadMapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Python.Runtime
1010
internal class OverloadMapper : ExtensionType
1111
{
1212
private readonly MethodObject m;
13-
private readonly PyObject? target;
13+
private PyObject? target;
1414
readonly PyType targetType;
1515

1616
public OverloadMapper(MethodObject m, PyObject? target, PyType targetType)
@@ -59,7 +59,7 @@ public static NewReference tp_repr(BorrowedReference op)
5959

6060
public new static int tp_clear(BorrowedReference ob)
6161
{
62-
var self = (MethodBinding)GetManagedObject(ob)!;
62+
var self = (OverloadMapper)GetManagedObject(ob)!;
6363

6464
self.target?.Dispose();
6565
self.targetType.Dispose();

0 commit comments

Comments
 (0)