libtracker: VirtualDirectoryManager::_RemoveDirectory(): typo

Should have caused infinite recursion when the directory still had
children.
This commit is contained in:
Ingo Weinhold 2013-08-06 00:37:33 +02:00
parent c591ff14a1
commit 8a2643daee

View File

@ -677,7 +677,7 @@ VirtualDirectoryManager::_RemoveDirectory(Info* info)
{ {
// recursively remove the subdirectories // recursively remove the subdirectories
for (int32 i = 0; Info* child = info->Children().ItemAt(i); i++) for (int32 i = 0; Info* child = info->Children().ItemAt(i); i++)
_RemoveDirectory(info); _RemoveDirectory(child);
// remove the directory for the child definition file // remove the directory for the child definition file
if (!info->Id().IsEmpty()) { if (!info->Id().IsEmpty()) {