diff options
| author | Méven Car <[email protected]> | 2026-03-10 11:30:56 +0100 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-03-10 11:30:56 +0100 |
| commit | 85abfc8711b0a2ce0ca3a3ebc1b32e56502b6e35 (patch) | |
| tree | 275d5642a82f1ad742fb919b2aa7340d7fc7d8c8 /src/dolphinmainwindow.cpp | |
| parent | 359ba4c0700ff43a68ad62517bf7c638c341be8a (diff) | |
dolphinmainwindow: set parent for DockWidget
Prevents a mem-leak on exit spotted by -fsanitize/asan.
Diffstat (limited to 'src/dolphinmainwindow.cpp')
| -rw-r--r-- | src/dolphinmainwindow.cpp | 2 |
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); |
