bpo-45160: Fix refleak in test_ttk_guionly introduced in GH-28291#29416
Merged
ambv merged 1 commit intopython:mainfrom Nov 5, 2021
Merged
bpo-45160: Fix refleak in test_ttk_guionly introduced in GH-28291#29416ambv merged 1 commit intopython:mainfrom
ambv merged 1 commit intopython:mainfrom
Conversation
Contributor
Author
|
Fix confirmed on the Windows 8.1 refleak buildbot: Build link: https://buildbot.python.org/all/#/builders/443/builds/9 |
ned-deily
approved these changes
Nov 5, 2021
Contributor
|
Thanks @ambv for the PR 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
Contributor
|
Sorry @ambv, I had trouble checking out the |
|
GH-29420 is a backport of this pull request to the 3.9 branch. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Nov 5, 2021
… (pythonGH-29416) (cherry picked from commit 54d1e3f) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Contributor
|
Thanks @ambv for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
Contributor
|
Thanks @ambv for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Nov 5, 2021
… (pythonGH-29416) (cherry picked from commit 54d1e3f) Co-authored-by: Łukasz Langa <lukasz@langa.pl>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The closure in
cb_testwas the root cause of the refleak, to address it we're taking the callback handle and deleting it when we don't need it anymore. Additionally, other tests explicitly destroyOptionMenuobjects to avoid issues with reference cycles.Before the change
After the change
https://bugs.python.org/issue45160