From 69999c70f14ef3fd03669ac034ef059960b008e8 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Wed, 11 Feb 2026 11:45:20 +0100 Subject: panels/panels: handle lifetime of internal actions Preventing a mem-leak on process leave. --- src/panels/places/placespanel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/panels/places/placespanel.h') diff --git a/src/panels/places/placespanel.h b/src/panels/places/placespanel.h index dd5cb6d9e..3bacfcb94 100644 --- a/src/panels/places/placespanel.h +++ b/src/panels/places/placespanel.h @@ -73,8 +73,8 @@ private: QPersistentModelIndex m_indexToTearDown; - QAction *m_configureTrashAction; - QAction *m_openInSplitView; + std::unique_ptr m_configureTrashAction; + std::unique_ptr m_openInSplitView; QAction *m_lockPanelsAction; }; -- cgit v1.3.1