CID 743867: Memleak in DiskUsage
This commit is contained in:
@@ -230,8 +230,10 @@ Scanner::_GetFileInfo(BDirectory* dir, FileInfo* parent)
|
|||||||
thisDir->count = 0;
|
thisDir->count = 0;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if (fQuitRequested)
|
if (fQuitRequested) {
|
||||||
|
delete thisDir;
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (dir->GetNextEntry(&entry) == B_ENTRY_NOT_FOUND)
|
if (dir->GetNextEntry(&entry) == B_ENTRY_NOT_FOUND)
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user