From 51bfb056939262419f13d55f527e5106c48555b4 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Mon, 27 Jun 2016 05:33:35 +0900 Subject: [PATCH] pcl6: Fix mismatching allocation and deallocation Signed-off-by: Adrien Destugues Ticket: #12835 --- src/add-ons/print/drivers/pcl6/DeltaRowCompression.cpp | 2 +- src/add-ons/print/drivers/pcl6/PCL6Writer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/print/drivers/pcl6/DeltaRowCompression.cpp b/src/add-ons/print/drivers/pcl6/DeltaRowCompression.cpp index f33fe18634..84a38d5fe0 100644 --- a/src/add-ons/print/drivers/pcl6/DeltaRowCompression.cpp +++ b/src/add-ons/print/drivers/pcl6/DeltaRowCompression.cpp @@ -26,7 +26,7 @@ AbstractDeltaRowCompressor::AbstractDeltaRowCompressor(int rowSize, AbstractDeltaRowCompressor::~AbstractDeltaRowCompressor() { - delete fSeedRow; + delete[] fSeedRow; fSeedRow = NULL; } diff --git a/src/add-ons/print/drivers/pcl6/PCL6Writer.cpp b/src/add-ons/print/drivers/pcl6/PCL6Writer.cpp index 9df5f0d96a..2a02a02b80 100644 --- a/src/add-ons/print/drivers/pcl6/PCL6Writer.cpp +++ b/src/add-ons/print/drivers/pcl6/PCL6Writer.cpp @@ -26,7 +26,7 @@ PCL6Writer::PCL6Writer(PCL6WriterStream* stream, uint32 bufferSize) PCL6Writer::~PCL6Writer() { - delete fBuffer; + delete[] fBuffer; fBuffer = NULL; }