[cig-commits] r22074 - short/3D/PyLith/trunk/libsrc/pylith/topology

brad at geodynamics.org brad at geodynamics.org
Wed May 15 09:59:17 PDT 2013


Author: brad
Date: 2013-05-15 09:59:16 -0700 (Wed, 15 May 2013)
New Revision: 22074

Modified:
   short/3D/PyLith/trunk/libsrc/pylith/topology/Fields.cc
Log:
Small fix for Fields. Deallocate map when deallocating fields.

Modified: short/3D/PyLith/trunk/libsrc/pylith/topology/Fields.cc
===================================================================
--- short/3D/PyLith/trunk/libsrc/pylith/topology/Fields.cc	2013-05-15 15:38:59 UTC (rev 22073)
+++ short/3D/PyLith/trunk/libsrc/pylith/topology/Fields.cc	2013-05-15 16:59:16 UTC (rev 22074)
@@ -51,6 +51,7 @@
   for (map_type::iterator iter=begin; iter != end; ++iter) {
     delete iter->second; iter->second = 0;
   } // for
+  _fields.clear();
 } // deallocate
 
 // ----------------------------------------------------------------------



More information about the CIG-COMMITS mailing list