From ea5d9584dafc73412489b96369ffb090f51edb4d Mon Sep 17 00:00:00 2001 From: memchr <118117622+memchr@users.noreply.github.com> Date: Fri, 22 Sep 2023 10:06:09 +0000 Subject: refactor: manually resets singletons (#3395) --- src/Compositor.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/Compositor.cpp') diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 2960fc2c..d3f8bab2 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -74,6 +74,24 @@ CCompositor::CCompositor() { CCompositor::~CCompositor() { cleanup(); + g_pPluginSystem.reset(); + g_pHyprNotificationOverlay.reset(); + g_pDebugOverlay.reset(); + g_pEventManager.reset(); + g_pSessionLockManager.reset(); + g_pProtocolManager.reset(); + g_pXWaylandManager.reset(); + g_pHyprRenderer.reset(); + g_pHyprOpenGL.reset(); + g_pInputManager.reset(); + g_pThreadManager.reset(); + g_pConfigManager.reset(); + g_pLayoutManager.reset(); + g_pHyprError.reset(); + g_pConfigManager.reset(); + g_pAnimationManager.reset(); + g_pKeybindManager.reset(); + g_pHookSystem.reset(); } void CCompositor::setRandomSplash() { -- cgit v1.2.3