core: fix crash on monitor removed with gammaControl (#7601)

* fix crash on monitor removed with gammaControl

* Update GammaControl.cpp
This commit is contained in:
Ikalco
2024-08-31 14:55:08 -05:00
committed by GitHub
parent cac59fefec
commit a6315b0af4
2 changed files with 8 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ class CGammaControl {
private:
SP<CZwlrGammaControlV1> resource;
CMonitor* pMonitor = nullptr;
WP<CMonitor> pMonitor;
size_t gammaSize = 0;
bool gammaTableSet = false;
std::vector<uint16_t> gammaTable; // [r,g,b]+