Skip to content

Make it possible to use Py_Finalize before calling the PythonQt destructor #267

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

MinyazevR
Copy link
Contributor

  1. Solution for issue.
    Namely, adding PythonQt::preCleanUp, which is called before Py_FinalzeEx and clears some fields, which makes it possible to call PythonQt::Cleanup without subsequent crashes.
  2. Fixing memory leaks for all tests. However, the re-initialization tests currently fail for Python3.12.0-3.12.4 due to issue.
    3 Small changes to improve c++ code.

@MinyazevR MinyazevR changed the title Minyazev r fix tests Make it possible to use Py_Finalize before calling the PythonQt destructor Jun 26, 2025
@MinyazevR MinyazevR marked this pull request as draft June 26, 2025 19:30
@MinyazevR MinyazevR marked this pull request as ready for review June 30, 2025 17:04
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