Skip to content
Snippets Groups Projects
Commit 01018a0e authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

remove a few minor memory leaks

parent 7657d38e
No related branches found
No related tags found
No related merge requests found
......@@ -1393,6 +1393,10 @@ FieldManager::FieldManager()
map_type_name["MaxEigenHessian"] = new FieldFactoryT<MaxEigenHessianField>();
background_field = -1;
}
FieldManager::~FieldManager(){
for ( std::map<std::string, FieldFactory*>::iterator it = map_type_name.begin(); it!=map_type_name.end(); it++)
delete it->second;
}
#if defined(HAVE_POST)
void Field::putOnNewView()
......
......@@ -94,6 +94,7 @@ class FieldManager : public std::map<int, Field*> {
int newId();
int maxId();
FieldManager();
~FieldManager();
int background_field;
// compatibility with -bgm
void setBackgroundMesh(int iView);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment