Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wayland] Fix a crash when an application exits. JB#44844
Two things try to delete QWaylandSurfaceInterface instances, the QWaylandSurface they were created for and the wayland resource they represent. In my case the QWaylandSurface is doing so first and there was a subsequent crash due to an access after deletion by the code generated resource destroy callback which can be avoided by destroying the resource from within the object destructor and shortcutting the consquent destruction. The reverse order will still be a problem.
- Loading branch information
Showing
4 changed files
with
29 additions
and
5 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