core: fix crash on monitor removed with gammaControl (#7601)
* fix crash on monitor removed with gammaControl * Update GammaControl.cpp
This commit is contained in:
parent
cac59fefec
commit
a6315b0af4
2 changed files with 8 additions and 8 deletions
|
|
@ -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]+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue