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()) {