aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/libLumina/LuminaXDG.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@pcbsd.org>2016-09-21 12:19:58 -0400
committerKen Moore <ken@pcbsd.org>2016-09-21 12:19:58 -0400
commit16e6d9d7ad7f342a747bef3ffcbe007ee3132ba6 (patch)
tree012ca7d94ba3ca32ac0d9287649b3e4449084b34 /src-qt5/core/libLumina/LuminaXDG.cpp
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-16e6d9d7ad7f342a747bef3ffcbe007ee3132ba6.tar.gz
lumina-16e6d9d7ad7f342a747bef3ffcbe007ee3132ba6.tar.bz2
lumina-16e6d9d7ad7f342a747bef3ffcbe007ee3132ba6.zip
Another quick fix to try and track down where Lumina is leaking memory within teh app list search routine.
Diffstat (limited to 'src-qt5/core/libLumina/LuminaXDG.cpp')
-rw-r--r--src-qt5/core/libLumina/LuminaXDG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/LuminaXDG.cpp b/src-qt5/core/libLumina/LuminaXDG.cpp
index 64f21743..a32273c0 100644
--- a/src-qt5/core/libLumina/LuminaXDG.cpp
+++ b/src-qt5/core/libLumina/LuminaXDG.cpp
@@ -65,6 +65,7 @@ void XDGDesktopList::updateList(){
}
if(ok && !found.contains(dFile.name)){
if(!oldkeys.contains(path)){ newfiles << path; } //brand new file (not an update to a previously-read file)
+ else{ files.remove(path); } //just to ensure that we don't get duplicates within the Hash
files.insert(path, dFile);
found << dFile.name;
oldkeys.removeAll(path); //make sure this key does not get cleaned up later
bgstack15