[MOAB-dev] r1705 - MOAB/trunk

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


Author: kraftche
Date: 2008-03-25 16:16:57 -0500 (Tue, 25 Mar 2008)
New Revision: 1705

Modified:
   MOAB/trunk/scdseq_test.cpp
Log:
memory leak

Modified: MOAB/trunk/scdseq_test.cpp
===================================================================
--- MOAB/trunk/scdseq_test.cpp	2008-03-25 21:06:00 UTC (rev 1704)
+++ MOAB/trunk/scdseq_test.cpp	2008-03-25 21:16:57 UTC (rev 1705)
@@ -265,13 +265,13 @@
   int errors = 0;
 
     // first we need to make a new MBCore
-  MBCore *gMB = new MBCore();
+  MBCore moab;
   
     // test creating and evaluating vertex sequences
-  errors += test_vertex_seq(gMB);
+  errors += test_vertex_seq(&moab);
 
     // test creating and evaluating element sequences
-  errors += test_element_seq(gMB);
+  errors += test_element_seq(&moab);
 
   if (errors > 0)
     std::cout << errors << " errors found." << std::endl;




More information about the moab-dev mailing list