- fixed memory leaks in file system management
This commit is contained in:
parent
bdd02d9b2c
commit
7f61266621
3 changed files with 5 additions and 3 deletions
|
|
@ -194,7 +194,7 @@ static void PrintLastError (FileSystemMessageFunc Printf);
|
|||
|
||||
FileSystem::FileSystem()
|
||||
{
|
||||
stringpool = new StringPool;
|
||||
stringpool = new StringPool(true);
|
||||
stringpool->shared = true; // will be used by all owned resource files.
|
||||
}
|
||||
|
||||
|
|
@ -219,6 +219,8 @@ void FileSystem::DeleteAll ()
|
|||
delete Files[i];
|
||||
}
|
||||
Files.clear();
|
||||
delete stringpool;
|
||||
stringpool = nullptr;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue