gammactrl: fix potential crash on monitor removed (#7828)
This commit is contained in:
parent
581f6659f8
commit
3c9716acfd
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ CGammaControl::CGammaControl(SP<CZwlrGammaControlV1> resource_, wl_resource* out
|
||||||
|
|
||||||
pMonitor = OUTPUTRES->monitor;
|
pMonitor = OUTPUTRES->monitor;
|
||||||
|
|
||||||
if (!pMonitor) {
|
if (!pMonitor || !pMonitor->output) {
|
||||||
LOGM(ERR, "No CMonitor");
|
LOGM(ERR, "No CMonitor");
|
||||||
resource->sendFailed();
|
resource->sendFailed();
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue