diff options
| author | Eren <51189118+astridlyre@users.noreply.github.com> | 2026-05-01 15:50:02 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-01 23:50:02 +0100 |
| commit | 4ab3a40398d1331b69e033ab14533524c554a002 (patch) | |
| tree | 2a4f7a75b89a02d55522e1aef9adf71a2cb1940d /src/debug/HyprCtl.cpp | |
| parent | 5f9df52b5593bda5bd60786691f2bac61f3ae89d (diff) | |
screenshare: adjust session cleanup and event emission order (#14229)
* fix(screenshare): adjust session cleanup and event emission order
Revised the handling of `stoppedListener` initialization in
`getManagedSession` to ensure correct scoping and lifecycle management.
Updated the `stop` method in `CScreenshareSession` to adjust the order
of `screenshareEvents` and `stopped.emit()` to prevent potential
use-after-free scenarios.
* fix(screenshare): ensure managedSession removal uses consistent target reference
This change updates the lambda in the stopped listener to use
a pre-fetched target pointer for comparison when erasing sessions.
* fix(screenshare): use early-return and smart ptr comparison in session cleanup
Diffstat (limited to 'src/debug/HyprCtl.cpp')
0 files changed, 0 insertions, 0 deletions
