[MOAB-dev] r1704 - MOAB/trunk

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Tue Mar 25 16:06:00 CDT 2008


Author: kraftche
Date: 2008-03-25 16:06:00 -0500 (Tue, 25 Mar 2008)
New Revision: 1704

Modified:
   MOAB/trunk/Tqdcfr.hpp
Log:
fix some of the memory leaks in Tqdcfr.cpp

Modified: MOAB/trunk/Tqdcfr.hpp
===================================================================
--- MOAB/trunk/Tqdcfr.hpp	2008-03-25 21:05:51 UTC (rev 1703)
+++ MOAB/trunk/Tqdcfr.hpp	2008-03-25 21:06:00 UTC (rev 1704)
@@ -91,7 +91,7 @@
   class MetaDataContainer
   {
   public:
-    unsigned int mdSchema, compressFlag, numDatums;
+    unsigned int mdSchema, compressFlag;
 
     class MetaDataEntry
     {
@@ -111,9 +111,8 @@
 
     int get_md_entry(const unsigned int owner, const std::string &name);
     
-    MetaDataEntry *metadataEntries;
+    std::vector<MetaDataEntry> metadataEntries;
     MetaDataContainer();
-    ~MetaDataContainer();
   };
 
   class GeomHeader 
@@ -272,7 +271,7 @@
   MBInterface *mdbImpl;
   FILE *cubFile;
   FileTOC fileTOC;
-  ModelEntry *modelEntries;
+  std::vector<ModelEntry> modelEntries;
   MetaDataContainer modelMetaData;
   long currVHandleOffset;
   long currElementIdOffset[MBMAXTYPE];




More information about the moab-dev mailing list