forked from NatronGitHub/Natron
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix crashes related to TabWidget::removeTab().
- Add code to ~PyPanel() to unregister itself. - Added code in TabWidget::removeTab() to specifically handle PyPanel objects. The code was crashing in cases where the removeTab() call was deleting the last reference to the PyPanel object and Python was destroying the object. The new code avoids use-after-free crashes in this situation. - Updated documentation to properly indicate that PyPanel objects may be destroyed if removeTab() deletes the last reference. - Changed TabWidget::removeTab() return value since the function can't guarantee a valid object for the type it was returning. Only one call site needed to be updated and it was effectively ignoring the value anyways.
- Loading branch information
Showing
4 changed files
with
25 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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