mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-02 13:11:55 -07:00
gammactrl: fix potential crash on monitor removed (#7828)
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user