[cig-commits] r14856 - short/3D/PyLith/branches/pylith-swig/unittests/libtests/feassemble
brad at geodynamics.org
brad at geodynamics.org
Mon May 4 14:26:45 PDT 2009
Author: brad
Date: 2009-05-04 14:26:45 -0700 (Mon, 04 May 2009)
New Revision: 14856
Modified:
short/3D/PyLith/branches/pylith-swig/unittests/libtests/feassemble/TestQuadratureEngine.cc
Log:
Fixed memory leak.
Modified: short/3D/PyLith/branches/pylith-swig/unittests/libtests/feassemble/TestQuadratureEngine.cc
===================================================================
--- short/3D/PyLith/branches/pylith-swig/unittests/libtests/feassemble/TestQuadratureEngine.cc 2009-05-04 21:02:29 UTC (rev 14855)
+++ short/3D/PyLith/branches/pylith-swig/unittests/libtests/feassemble/TestQuadratureEngine.cc 2009-05-04 21:26:45 UTC (rev 14856)
@@ -85,6 +85,8 @@
CPPUNIT_ASSERT_EQUAL(size, jacobianDet.size());
for (int i=0; i < size; ++i)
CPPUNIT_ASSERT_EQUAL(jacobianDetE[i], jacobianDet[i]);
+
+ delete engine; engine = 0;
} // testCopyConstructor
// ----------------------------------------------------------------------
More information about the CIG-COMMITS
mailing list