From 47d46aa56cc9c0c853401275bbe920e902f7d5e6 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 12 Nov 2023 14:03:46 +0000 Subject: inputmgr: clean lists in ~dtor ref #3558 --- src/managers/input/InputManager.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/managers/input/InputManager.cpp') diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index d096ab32..2dba7515 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -3,6 +3,18 @@ #include "wlr/types/wlr_switch.h" #include +CInputManager::~CInputManager() { + m_lConstraints.clear(); + m_lKeyboards.clear(); + m_lMice.clear(); + m_lTablets.clear(); + m_lTabletTools.clear(); + m_lTabletPads.clear(); + m_lIdleInhibitors.clear(); + m_lTouchDevices.clear(); + m_lSwitches.clear(); +} + void CInputManager::onMouseMoved(wlr_pointer_motion_event* e) { static auto* const PSENS = &g_pConfigManager->getConfigValuePtr("general:sensitivity")->floatValue; static auto* const PNOACCEL = &g_pConfigManager->getConfigValuePtr("input:force_no_accel")->intValue; -- cgit v1.2.3