From 85abfc8711b0a2ce0ca3a3ebc1b32e56502b6e35 Mon Sep 17 00:00:00 2001 From: Méven Car Date: Tue, 10 Mar 2026 11:30:56 +0100 Subject: dolphinmainwindow: set parent for DockWidget Prevents a mem-leak on exit spotted by -fsanitize/asan. --- src/dolphinmainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index f276d88d4..b2869950b 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -2368,7 +2368,7 @@ void DolphinMainWindow::setupDockWidgets() connect(lockLayoutAction, &KDualAction::triggered, this, &DolphinMainWindow::togglePanelLockState); // Setup "Information" - DolphinDockWidget *infoDock = new DolphinDockWidget(i18nc("@title:window", "Information")); + DolphinDockWidget *infoDock = new DolphinDockWidget(i18nc("@title:window", "Information"), this); infoDock->setLocked(lock); infoDock->setObjectName(QStringLiteral("infoDock")); infoDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea); -- cgit v1.3