┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMéven Car <[email protected]>2026-03-10 11:30:56 +0100
committerMéven Car <[email protected]>2026-03-10 11:30:56 +0100
commit85abfc8711b0a2ce0ca3a3ebc1b32e56502b6e35 (patch)
tree275d5642a82f1ad742fb919b2aa7340d7fc7d8c8
parent359ba4c0700ff43a68ad62517bf7c638c341be8a (diff)
dolphinmainwindow: set parent for DockWidget
Prevents a mem-leak on exit spotted by -fsanitize/asan.
-rw-r--r--src/dolphinmainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
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);