mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 15:16:12 +00:00
Changed: Delete filenames before allocating new ones
This commit is contained in:
parent
a905001849
commit
ffdbf0be8c
1 changed files with 3 additions and 0 deletions
|
@ -339,6 +339,9 @@ bool CBigFile::BNP::readHeader(FILE *file)
|
|||
it++;
|
||||
}
|
||||
|
||||
if (FileNames)
|
||||
delete[] FileNames;
|
||||
|
||||
FileNames = new char[nSize];
|
||||
memset(FileNames, 0, nSize);
|
||||
Files.resize(nNb);
|
||||
|
|
Loading…
Reference in a new issue