diff options
| author | Ikalco <73481042+ikalco@users.noreply.github.com> | 2024-08-31 14:55:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-31 21:55:08 +0200 |
| commit | a6315b0af4e417cf396649d9c5792d3c5420b713 (patch) | |
| tree | 5c76af314da05841de017e2de7192fa1c5d117d6 /src/protocols/GammaControl.hpp | |
| parent | cac59fefecaefe34be45e65713d54676444f88a2 (diff) | |
core: fix crash on monitor removed with gammaControl (#7601)
* fix crash on monitor removed with gammaControl
* Update GammaControl.cpp
Diffstat (limited to 'src/protocols/GammaControl.hpp')
| -rw-r--r-- | src/protocols/GammaControl.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocols/GammaControl.hpp b/src/protocols/GammaControl.hpp index 963eea5c..bbdc0139 100644 --- a/src/protocols/GammaControl.hpp +++ b/src/protocols/GammaControl.hpp @@ -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]+ |
