[cig-commits] r11258 - cs/benchmark/cigma/trunk/src

luis at geodynamics.org luis at geodynamics.org
Tue Feb 26 04:52:19 PST 2008


Author: luis
Date: 2008-02-26 04:52:18 -0800 (Tue, 26 Feb 2008)
New Revision: 11258

Modified:
   cs/benchmark/cigma/trunk/src/QuadraturePoints.cpp
Log:
Disable deallocation of data pointer in QuadraturePoints destructor
 * This data pointer is copied from an external source (see Points.cpp)
   and therefore the caller is responsible for deallocating it


Modified: cs/benchmark/cigma/trunk/src/QuadraturePoints.cpp
===================================================================
--- cs/benchmark/cigma/trunk/src/QuadraturePoints.cpp	2008-02-26 12:52:14 UTC (rev 11257)
+++ cs/benchmark/cigma/trunk/src/QuadraturePoints.cpp	2008-02-26 12:52:18 UTC (rev 11258)
@@ -14,7 +14,7 @@
 {
     if (qpts != 0) delete [] qpts;
     if (qwts != 0) delete [] qwts;
-    if (data != 0) delete [] data;
+    //if (data != 0) delete [] data; //XXX: why does it crash here?
 }
 
 



More information about the cig-commits mailing list