From 8a2643daee34659df91d82e6a75b61ded68b21b0 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Tue, 6 Aug 2013 00:37:33 +0200 Subject: [PATCH] libtracker: VirtualDirectoryManager::_RemoveDirectory(): typo Should have caused infinite recursion when the directory still had children. --- src/kits/tracker/VirtualDirectoryManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/tracker/VirtualDirectoryManager.cpp b/src/kits/tracker/VirtualDirectoryManager.cpp index affe45f97f..40dce3fdb9 100644 --- a/src/kits/tracker/VirtualDirectoryManager.cpp +++ b/src/kits/tracker/VirtualDirectoryManager.cpp @@ -677,7 +677,7 @@ VirtualDirectoryManager::_RemoveDirectory(Info* info) { // recursively remove the subdirectories for (int32 i = 0; Info* child = info->Children().ItemAt(i); i++) - _RemoveDirectory(info); + _RemoveDirectory(child); // remove the directory for the child definition file if (!info->Id().IsEmpty()) {