[utilities/krusader] app/Archive: Archive: Fix a memory leak
Toni Asensi Esteve <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 12320983d88a5520a9d1a94c6e39d4a939ad8704 by Toni Asensi Esteve.
Committed on 16/08/2026 at 22:14.
Pushed by asensi into branch 'master'.
Archive: Fix a memory leak
Revision: https://invent.kde.org/utilities/krusader/-/merge_requests/193
M +4 -0 app/Archive/abstractthreadedjob.cpp
https://invent.kde.org/utilities/krusader/-/commit/12320983d88a5520a9d1a94c6e39d4a939ad8704
diff --git a/app/Archive/abstractthreadedjob.cpp b/app/Archive/abstractthreadedjob.cpp
index 48f9458cf..fe51a8966 100644
--- a/app/Archive/abstractthreadedjob.cpp
+++ b/app/Archive/abstractthreadedjob.cpp
@@ -297,6 +297,10 @@ AbstractJobThread::~AbstractJobThread()
delete _tempFile;
_tempFile = nullptr;
}
+ if (_tempDir) {
+ delete _tempDir;
+ _tempDir = nullptr;
+ }
}
void AbstractJobThread::run()