From ac6ebb1abbf2819e0b130d2ee0b5ce36f5a4aedb Mon Sep 17 00:00:00 2001 From: YeShanShan Date: Mon, 13 Jan 2025 18:00:34 +0800 Subject: [PATCH] fix: access wild pointer for notificationcenter DataAccessorProxy::instance() is an static object, and we should release it in server applet. pms: BUG-366403 --- panels/notification/server/notificationmanager.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/panels/notification/server/notificationmanager.cpp b/panels/notification/server/notificationmanager.cpp index 3f37cd61c..ac64fba55 100644 --- a/panels/notification/server/notificationmanager.cpp +++ b/panels/notification/server/notificationmanager.cpp @@ -78,10 +78,6 @@ NotificationManager::NotificationManager(QObject *parent) NotificationManager::~NotificationManager() { - if (m_persistence) { - delete m_persistence; - m_persistence = nullptr; - } } bool NotificationManager::registerDbusService()