Skip to content

ClassManager illegally decrefed ClassObject's refcount on shutdown #1563

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

Merged
merged 1 commit into from
Sep 22, 2021

Conversation

lostmsu
Copy link
Member

@lostmsu lostmsu commented Sep 22, 2021

Does this close any currently open issues?

#1561

Any other comments?

Long term we should switch ManagedType and other classes, that hold long-lived references to Python objects to use PyObject. This would make any code, that uses them refcount-balanced automatically.

See #1562

Checklist

  • Make sure to include one or more tests for your change

@lostmsu lostmsu force-pushed the class-refcount-shutdown branch from be2eefa to 9616a6f Compare September 22, 2021 17:10
@lostmsu lostmsu merged commit 2679c19 into pythonnet:master Sep 22, 2021
@lostmsu lostmsu deleted the class-refcount-shutdown branch September 22, 2021 17:22
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.

1 participant