[MOAB-dev] r1706 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Wed Mar 26 10:52:29 CDT 2008


Author: kraftche
Date: 2008-03-26 10:52:29 -0500 (Wed, 26 Mar 2008)
New Revision: 1706

Modified:
   MOAB/trunk/TypeSequenceManager.cpp
Log:
fix memory leak

Modified: MOAB/trunk/TypeSequenceManager.cpp
===================================================================
--- MOAB/trunk/TypeSequenceManager.cpp	2008-03-25 21:16:57 UTC (rev 1705)
+++ MOAB/trunk/TypeSequenceManager.cpp	2008-03-26 15:52:29 UTC (rev 1706)
@@ -236,6 +236,8 @@
     for (++s; p != s; ++p)
       (*p)->data( new_data );
     dead_data->move_tag_data( new_data, tag_server );
+    if (!(*new_data->seqManData.firstSequence)->using_entire_data())
+      availableList.insert( new_data );
   }
   if (j != n) {
     SequenceData* new_data = (*n)->create_data_subset( (*i)->start_handle(), (*n)->end_handle() );
@@ -243,6 +245,8 @@
     for (++n; i != n; ++i)
       (*i)->data( new_data );
     dead_data->move_tag_data( new_data, tag_server );
+    if (!(*new_data->seqManData.firstSequence)->using_entire_data())
+      availableList.insert( new_data );
   }
   delete dead_data;
   




More information about the moab-dev mailing list