File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1589,7 +1589,7 @@ function TExposedIndexedPropertyImplementation.TIndexedPropertyAccess.GetItem(
1589
1589
nil ,
1590
1590
true);
1591
1591
finally
1592
- GetPythonEngine().Py_CLEAR (LIndexes);
1592
+ GetPythonEngine().Py_DecRef (LIndexes);
1593
1593
end ;
1594
1594
end ;
1595
1595
end ;
@@ -1623,7 +1623,7 @@ function TExposedIndexedPropertyImplementation.TIndexedPropertyAccess.SetItem(
1623
1623
nil ,
1624
1624
true);
1625
1625
finally
1626
- GetPythonEngine().Py_CLEAR (LIndexes);
1626
+ GetPythonEngine().Py_DecRef (LIndexes);
1627
1627
end ;
1628
1628
end else begin
1629
1629
LIndexes := GetPythonEngine().PyTuple_New(2 );
@@ -1640,7 +1640,7 @@ function TExposedIndexedPropertyImplementation.TIndexedPropertyAccess.SetItem(
1640
1640
nil ,
1641
1641
true);
1642
1642
finally
1643
- GetPythonEngine().Py_CLEAR (LIndexes);
1643
+ GetPythonEngine().Py_DecRef (LIndexes);
1644
1644
end ;
1645
1645
end ;
1646
1646
You can’t perform that action at this time.
0 commit comments