The Wayback Machine - https://web.archive.org/web/20220930073208/https://github.com/pythonnet/pythonnet/pull/1761
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear weak reference list when an extension type is destroyed #1761

Merged
merged 1 commit into from Apr 10, 2022

Conversation

lostmsu
Copy link
Member

@lostmsu lostmsu commented Apr 9, 2022

Extension types were missed in #1758

What does this implement/fix? Explain your changes.

Clears weakref list in extension type instances when they are destroyed

According to official documentation for defining extension types, if they are to support weak references, they must clear weak reference list associated with the instance in tp_clear.

Extension types were missed in pythonnet#1758 ( 50da522 )
@lostmsu lostmsu requested a review from filmor Apr 9, 2022
filmor
filmor approved these changes Apr 10, 2022
@filmor filmor merged commit 86c6a7f into pythonnet:master Apr 10, 2022
16 checks passed
@lostmsu lostmsu deleted the weakref/ext branch Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants