From 714830f8dda873fbefa6de9704c90220e16a6133 Mon Sep 17 00:00:00 2001 From: Sebastian Englbrecht Date: Sat, 23 May 2026 17:40:25 +0200 Subject: dolphinview,mountpointobserver: kill in-flight KIO jobs in destructor Both objects start KIO jobs that can outlive the object if it is destroyed before the job finishes. Store the pending job and call kill(Quietly) in the destructor to avoid leaks and dangling callbacks. --- src/views/dolphinview.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/views') diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index 4747b5ecc..74c5ecd23 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -276,6 +276,9 @@ DolphinView::DolphinView(const QUrl &url, QWidget *parent) DolphinView::~DolphinView() { + if (m_statJobForStatusBarText) { + m_statJobForStatusBarText->kill(KJob::Quietly); + } disconnect(m_container->controller(), &KItemListController::modelChanged, this, &DolphinView::slotModelChanged); } -- cgit v1.3.1