diff options
| author | Peter Penz <[email protected]> | 2011-01-08 23:48:22 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-01-08 23:48:22 +0000 |
| commit | b3acdc75c4b8aa4519586ebf7652c2fb51e9b801 (patch) | |
| tree | 16b9650b5bd842f5cce291b92a6712ffd301ddd9 /src | |
| parent | eaf7c9ab2b1df364b253799c9792f6720b3f11e7 (diff) | |
Forward port: Fix memory leak in searchDirectory()
CCBUG: 262481
svn path=/trunk/KDE/kdebase/apps/; revision=1212998
Diffstat (limited to 'src')
| -rw-r--r-- | src/search/filenamesearchprotocol.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/search/filenamesearchprotocol.cpp b/src/search/filenamesearchprotocol.cpp index d2391874c..f50d9ebd9 100644 --- a/src/search/filenamesearchprotocol.cpp +++ b/src/search/filenamesearchprotocol.cpp @@ -102,6 +102,9 @@ void FileNameSearchProtocol::searchDirectory(const KUrl& directory) } listEntry(KIO::UDSEntry(), true); + delete dirLister; + dirLister = 0; + // Recursively iterate all sub directories foreach (const KUrl& pendingDir, pendingDirs) { searchDirectory(pendingDir); |
