Commits

Matthew Turk committed 5f53eb6

Fixing minor memory leak in tests and use typedef.

  • Participants
  • Parent commits fe68953

Comments (0)

Files changed (2)

File field_objects/Grid.C

 }
 
 Grid::~Grid() {
-  std::map<std::string, FieldDescriptor*>::iterator iter;
+  FieldRegistry::iterator iter;
   for (iter = this->Fields.begin();
        iter != this->Fields.end(); ++iter) {
     if (iter->second != NULL) {

File tests/TestFieldDescriptors.C

   ASSERT_NE(Dims2[2], Dims3[2]);
 
   ASSERT_NE(fd_base->GetValues(), fd_new->GetValues());
+  delete fd_base;
+  delete fd_new;
 }