- a few more explicit local buffer allocations removed.

This commit is contained in:
Christoph Oelckers 2018-12-21 10:26:09 +01:00
commit ebaabcfb4f
3 changed files with 11 additions and 20 deletions

View file

@ -464,10 +464,9 @@ bool FSerializer::OpenReader(FCompressedBuffer *input)
}
else
{
char *unpacked = new char[input->mSize];
input->Decompress(unpacked);
r = new FReader(unpacked, input->mSize);
delete[] unpacked;
TArray<char> unpacked(input->mSize);
input->Decompress(unpacked.Data());
r = new FReader(unpacked.Data(), input->mSize);
}
return true;
}