Changed: Delete filenames before allocating new ones

--HG--
branch : develop
This commit is contained in:
kervala 2016-12-09 16:05:13 +01:00
parent 995ea1e64f
commit 06cc0ddec8

View file

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