From 033cecc576749ca7a542efccdcdefb29c1f3ef69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=AF=E7=BA=A2=E5=8B=8B?= Date: Mon, 15 Apr 2024 11:12:34 +0800 Subject: [PATCH] ukui-panel: fix a memory leak problem MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 侯红勋 --- panel/ukuipanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel/ukuipanel.cpp b/panel/ukuipanel.cpp index 93efa54..e3fa7a5 100644 --- a/panel/ukuipanel.cpp +++ b/panel/ukuipanel.cpp @@ -294,7 +294,7 @@ UKUIPanel::UKUIPanel(const QString &configGroup, UKUi::Settings *settings, QWidg styleAdjust(); qDebug()<<"Panel :: UKuiPanel finished"; - UKuiPanelInformation* dbus=new UKuiPanelInformation; + UKuiPanelInformation* dbus=new UKuiPanelInformation(this); new PanelAdaptor(dbus); QDBusConnection con=QDBusConnection::sessionBus(); if(!con.registerService("org.ukui.panel") || -- 2.43.0