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