CID 743867: Memleak in DiskUsage

This commit is contained in:
Philippe Saint-Pierre
2015-07-01 21:42:16 -04:00
parent 494fe5a431
commit 8d449661ca
+3 -1
View File
@@ -230,8 +230,10 @@ Scanner::_GetFileInfo(BDirectory* dir, FileInfo* parent)
thisDir->count = 0;
while (true) {
if (fQuitRequested)
if (fQuitRequested) {
delete thisDir;
return NULL;
}
if (dir->GetNextEntry(&entry) == B_ENTRY_NOT_FOUND)
break;