pcl6: Fix mismatching allocation and deallocation

Signed-off-by: Adrien Destugues <[email protected]>
Ticket: #12835
This commit is contained in:
Murai Takashi
2016-07-10 17:11:29 +02:00
committed by Adrien Destugues
parent dbb1fa50c6
commit 51bfb05693
2 changed files with 2 additions and 2 deletions
@@ -26,7 +26,7 @@ AbstractDeltaRowCompressor::AbstractDeltaRowCompressor(int rowSize,
AbstractDeltaRowCompressor::~AbstractDeltaRowCompressor()
{
delete fSeedRow;
delete[] fSeedRow;
fSeedRow = NULL;
}
@@ -26,7 +26,7 @@ PCL6Writer::PCL6Writer(PCL6WriterStream* stream, uint32 bufferSize)
PCL6Writer::~PCL6Writer()
{
delete fBuffer;
delete[] fBuffer;
fBuffer = NULL;
}