mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +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++;
|
it++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (FileNames)
|
||||||
|
delete[] FileNames;
|
||||||
|
|
||||||
FileNames = new char[nSize];
|
FileNames = new char[nSize];
|
||||||
memset(FileNames, 0, nSize);
|
memset(FileNames, 0, nSize);
|
||||||
Files.resize(nNb);
|
Files.resize(nNb);
|
||||||
|
|
Loading…
Reference in a new issue