diff options
| author | Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> | 2024-08-15 16:08:54 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-15 17:08:54 +0100 |
| commit | 520e91238f0e6e6990e6a0845d73d85012485525 (patch) | |
| tree | 4598ea0f10a2f5a60c7aa5381a0e9d7c3611d1bd /src/protocols/GammaControl.cpp | |
| parent | 0c56be74a310e137f577a2b71fc2c72a8100eada (diff) | |
gamma-control: fix crash on monitor disconnect (#7353)
Diffstat (limited to 'src/protocols/GammaControl.cpp')
| -rw-r--r-- | src/protocols/GammaControl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/GammaControl.cpp b/src/protocols/GammaControl.cpp index 494d9862..4febffbb 100644 --- a/src/protocols/GammaControl.cpp +++ b/src/protocols/GammaControl.cpp @@ -109,7 +109,7 @@ CGammaControl::CGammaControl(SP<CZwlrGammaControlV1> resource_, wl_resource* out } CGammaControl::~CGammaControl() { - if (!gammaTableSet || !pMonitor) + if (!gammaTableSet || !pMonitor || !pMonitor->output) return; // reset the LUT if the client dies for whatever reason and doesn't unset the gamma |
