summaryrefslogtreecommitdiff
path: root/src/Compositor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r--src/Compositor.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index 3f53f6c3..ea88bec1 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -421,8 +421,22 @@ void CCompositor::cleanup() {
g_pWatchdog.reset();
g_pXWaylandManager.reset();
- wl_display_terminate(m_sWLDisplay);
+ if (m_sWLRCursor)
+ wlr_cursor_destroy(m_sWLRCursor);
+
+ if (m_sSeat.seat)
+ wlr_seat_destroy(m_sSeat.seat);
+
+ if (m_sWLRRenderer)
+ wlr_renderer_destroy(m_sWLRRenderer);
+
+ if (m_sWLRAllocator)
+ wlr_allocator_destroy(m_sWLRAllocator);
+ if (m_sWLRBackend)
+ wlr_backend_destroy(m_sWLRBackend);
+
+ wl_display_terminate(m_sWLDisplay);
m_sWLDisplay = nullptr;
}