- fixed memory leaks in file system management

This commit is contained in:
Christoph Oelckers 2023-09-11 23:19:22 +02:00
commit 7f61266621
3 changed files with 5 additions and 3 deletions

View file

@ -332,7 +332,7 @@ FResourceFile *FResourceFile::OpenDirectory(const char *filename, LumpFilterInfo
FResourceFile::FResourceFile(const char *filename, StringPool* sp)
{
stringpool = sp ? sp : new StringPool;
stringpool = sp ? sp : new StringPool(false);
FileName = stringpool->Strdup(filename);
}