Commit bbc510f
fix: destroy wayland proxy before cleanup to prevent use-after-free crash
Call destroy() on the treeland_foreign_toplevel_handle_v1 proxy before emitting
handlerIsDeleted() to stop the compositor from sending further events to a handle
scheduled for C++ destruction. Without this, pending state events could arrive
after the ForeignToplevelHandle object is freed by QScopedPointer, causing a
crash in m_states.append() when activating applications from the system tray.1 parent 896d829 commit bbc510f
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
111 | 112 | | |
112 | 113 | | |
113 | 114 | | |
| |||
0 commit comments