pcl6: Fix mismatching allocation and deallocation
Signed-off-by: Adrien Destugues <[email protected]> Ticket: #12835
This commit is contained in:
committed by
Adrien Destugues
parent
dbb1fa50c6
commit
51bfb05693
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user