summaryrefslogtreecommitdiff
path: root/src/protocols/GammaControl.cpp
diff options
context:
space:
mode:
authorAndré Silva <123550+andresilva@users.noreply.github.com>2024-09-17 14:37:20 +0100
committerGitHub <noreply@github.com>2024-09-17 14:37:20 +0100
commit3c9716acfd00c6ea1b7bcd1dc63f97b51cc09998 (patch)
tree51cdd949a2976e52d5d6f5046b091e7a27c430a8 /src/protocols/GammaControl.cpp
parent581f6659f8541476da82ebd819a564780b3a969e (diff)
gammactrl: fix potential crash on monitor removed (#7828)
Diffstat (limited to 'src/protocols/GammaControl.cpp')
-rw-r--r--src/protocols/GammaControl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/GammaControl.cpp b/src/protocols/GammaControl.cpp
index d7992981..077d6e2f 100644
--- a/src/protocols/GammaControl.cpp
+++ b/src/protocols/GammaControl.cpp
@@ -19,7 +19,7 @@ CGammaControl::CGammaControl(SP<CZwlrGammaControlV1> resource_, wl_resource* out
pMonitor = OUTPUTRES->monitor;
- if (!pMonitor) {
+ if (!pMonitor || !pMonitor->output) {
LOGM(ERR, "No CMonitor");
resource->sendFailed();
return;