forked from rosebudai/OpenRCT2-Web
Fix memory leak in FileScanner
This commit is contained in:
1 parent
8894be6a6d
commit
a75c1f1bc4
1 file changed
+2
@@ -311,7 +311,9 @@ protected:
|
||||
DirectoryChild child = CreateChild(path, node);
|
||||
children.push_back(child);
|
||||
}
|
||||
free(namelist[i]);
|
||||
}
|
||||
free(namelist);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user