Changed: Delete filenames before allocating new ones

This commit is contained in:
kervala 2016-12-09 16:05:13 +01:00
parent a905001849
commit ffdbf0be8c

View file

@ -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);