parent
4eb69d1e54
commit
7fee914776
|
@ -158,6 +158,9 @@ void HMPImporter::InternReadFile(const std::string &pFile,
|
||||||
szBuffer[3] = ((char *)&iMagic)[3];
|
szBuffer[3] = ((char *)&iMagic)[3];
|
||||||
szBuffer[4] = '\0';
|
szBuffer[4] = '\0';
|
||||||
|
|
||||||
|
delete[] mBuffer;
|
||||||
|
mBuffer = nullptr;
|
||||||
|
|
||||||
// We're definitely unable to load this file
|
// We're definitely unable to load this file
|
||||||
throw DeadlyImportError("Unknown HMP subformat ", pFile,
|
throw DeadlyImportError("Unknown HMP subformat ", pFile,
|
||||||
". Magic word (", szBuffer, ") is not known");
|
". Magic word (", szBuffer, ") is not known");
|
||||||
|
|
Loading…
Reference in New Issue