summaryrefslogtreecommitdiff
path: root/src/Compositor.hpp
diff options
context:
space:
mode:
authorTom Englund <tomenglund26@gmail.com>2024-06-06 20:27:09 +0200
committerGitHub <noreply@github.com>2024-06-06 20:27:09 +0200
commitaf5f24929d83cc7a97a77de516bc665e38acfa12 (patch)
treef2afec3d02f3595efdadb4e40fa4724244953c40 /src/Compositor.hpp
parentc95845b1488b4bd63e901cbdc4cb68c27a45971b (diff)
core: free more memory on destruction (#6348)
* pointermgr: add destructor to state and free buf if the pointer has a buffer set it wont be freed upon destruction, make asan more happy by adding a destructor and wlr_buf_unlock it on exit. * cursormgr: free the animation timer event source properly free the animation timer event source on destruction. * compositor: free the critsig event source on exit properly free the critical signal event source on exit. * popup: clang format style clang format.
Diffstat (limited to 'src/Compositor.hpp')
-rw-r--r--src/Compositor.hpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/Compositor.hpp b/src/Compositor.hpp
index 94d9e4d0..a297518d 100644
--- a/src/Compositor.hpp
+++ b/src/Compositor.hpp
@@ -178,14 +178,15 @@ class CCompositor {
std::string explicitConfigPath;
private:
- void initAllSignals();
- void removeAllSignals();
- void cleanEnvironment();
- void setRandomSplash();
- void initManagers(eManagersInitStage stage);
- void prepareFallbackOutput();
-
- uint64_t m_iHyprlandPID = 0;
+ void initAllSignals();
+ void removeAllSignals();
+ void cleanEnvironment();
+ void setRandomSplash();
+ void initManagers(eManagersInitStage stage);
+ void prepareFallbackOutput();
+
+ uint64_t m_iHyprlandPID = 0;
+ wl_event_source* m_critSigSource = nullptr;
};
inline std::unique_ptr<CCompositor> g_pCompositor;