Fixed a leak in `NewReference.Move` by lostmsu · Pull Request #1873 · pythonnet/pythonnet
What does this implement/fix? Explain your changes.
NewReference.Move used to call NewReference constructor that increfs the handle. However, Move semantics must be of transferring the ownership: the reference count should stay, ownership transferred to the new instance.
Does this close any currently open issues?
Checklist
Check all those that are applicable and complete.
- Make sure to include one or more tests for your change