[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [Calligra] 8735360: delete[] instead of delete.
From:       Jaime <jtamate () gmail ! com>
Date:       2010-12-28 15:50:27
Message-ID: 20101228155027.E167FA6090 () git ! kde ! org
[Download RAW message or body]

commit 87353609d10051df24178673d27052d5d33f235f
branch master
Author: Jaime <jtamate@gmail.com>
Date:   Tue Dec 28 16:49:00 2010 +0100

    delete[] instead of delete.

diff --git a/krita/plugins/filters/colorsfilters/colorsfilters.cpp \
b/krita/plugins/filters/colorsfilters/colorsfilters.cpp index 6f7f2d2..f13d485 100644
--- a/krita/plugins/filters/colorsfilters/colorsfilters.cpp
+++ b/krita/plugins/filters/colorsfilters/colorsfilters.cpp
@@ -233,7 +233,7 @@ void KisAutoContrast::process(KisConstProcessingInformation \
srcInfo,  }
         if (progressUpdater) progressUpdater->setProgress(pixelsProcessed / \
totalCost);  }
-    delete transfer;
+    delete[] transfer;
     delete adj;
 }
 
diff --git a/krita/ui/kra/kis_kra_load_visitor.cpp \
b/krita/ui/kra/kis_kra_load_visitor.cpp index a7a31f5..da2ca8d 100644
--- a/krita/ui/kra/kis_kra_load_visitor.cpp
+++ b/krita/ui/kra/kis_kra_load_visitor.cpp
@@ -177,7 +177,7 @@ bool KisKraLoadVisitor::visit(KisGeneratorLayer* layer)
 //     if (!loadPaintDevice(layer->paintDevice(), getLocation(layer))) {
 //         return false;
 //     }
-// 
+//
 //     if (!loadProfile(layer->paintDevice(), getLocation(layer, DOT_ICC))) {
 //         return false;
 //     }
@@ -280,7 +280,7 @@ bool KisKraLoadVisitor::loadPaintDevice(KisPaintDeviceSP device, \
const QString&  quint8 *defPixel = new quint8[pixelSize];
             m_store->read((char*)defPixel, pixelSize);
             device->setDefaultPixel(defPixel);
-            delete defPixel;
+            delete[] defPixel;
         }
         m_store->close();
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic