[Liblas-commits] laszip: use array delete for writers_raw and writers_compressed

liblas-commits at liblas.org liblas-commits at liblas.org
Wed Jan 12 15:49:55 EST 2011


details:   http://hg.liblas.orglaszip/rev/2423f2e7d669
changeset: 140:2423f2e7d669
user:      Howard Butler <hobu.inc at gmail.com>
date:      Wed Jan 12 14:49:33 2011 -0600
description:
use array delete for writers_raw and writers_compressed

diffstat:

 src/laswritepoint.cpp |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 02c7e7603e15 -r 2423f2e7d669 src/laswritepoint.cpp
--- a/src/laswritepoint.cpp	Wed Jan 12 14:45:51 2011 -0600
+++ b/src/laswritepoint.cpp	Wed Jan 12 14:49:33 2011 -0600
@@ -242,6 +242,7 @@
     {
       delete writers_raw[i];
     }
+    delete[] writers_raw;
   }
   if (writers_compressed)
   {
@@ -249,6 +250,7 @@
     {
       delete writers_compressed[i];
     }
+    delete[] writers_compressed;
   }
   if (enc)
   {


More information about the Liblas-commits mailing list