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

fix (mvFileDialog): Need an INCREF on cancel_callback #2148 #2153

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

v-ein
Copy link
Contributor

@v-ein v-ein commented Aug 5, 2023


name: Pull Request
about: Create a pull request to help us improve
title: File Dialogs cancel_calback may lead to a crash
assignees: @hoffstadt


Closes #2148

Description:
This PR adds a missing INCREF on the stored cancel_callback value in the file dialog. This prevents certain special effects when the callback gets out of scope in Python, like segfaults when the user clicks "Cancel".

Concerning Areas:
None.

@hoffstadt hoffstadt merged commit c53a4c5 into hoffstadt:master Aug 18, 2023
4 checks passed
@v-ein v-ein deleted the bugfix/2148-filedlg-cancel branch August 18, 2023 16: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.

File Dialogs cancel_calback is behaving weirdly
2 participants