Ticket #12835: 0020-pcl6-Fix-mismatching-allocation-and-deallocation.patch

File 0020-pcl6-Fix-mismatching-allocation-and-deallocation.patch, 1.3 KB (added by mt, 4 years ago)
  • src/add-ons/print/drivers/pcl6/DeltaRowCompression.cpp

    From 887ae2e3dc82b0a972e79445dca798e38e10b0e4 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Mon, 27 Jun 2016 05:33:35 +0900
    Subject: [PATCH 20/22] pcl6: Fix mismatching allocation and deallocation
    
    ---
     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 f33fe18..84a38d5 100644
    a b AbstractDeltaRowCompressor::AbstractDeltaRowCompressor(int rowSize,  
    2626
    2727AbstractDeltaRowCompressor::~AbstractDeltaRowCompressor()
    2828{
    29     delete fSeedRow;
     29    delete[] fSeedRow;
    3030    fSeedRow = NULL;
    3131}
    3232
  • src/add-ons/print/drivers/pcl6/PCL6Writer.cpp

    diff --git a/src/add-ons/print/drivers/pcl6/PCL6Writer.cpp b/src/add-ons/print/drivers/pcl6/PCL6Writer.cpp
    index 9df5f0d..2a02a02 100644
    a b PCL6Writer::PCL6Writer(PCL6WriterStream* stream, uint32 bufferSize)  
    2626
    2727PCL6Writer::~PCL6Writer()
    2828{
    29     delete fBuffer;
     29    delete[] fBuffer;
    3030    fBuffer = NULL;
    3131}
    3232