Skip to content
Snippets Groups Projects
Commit bb26f501 authored by Nicolas Marsic's avatar Nicolas Marsic
Browse files

Fix memory leak

parent cfba6d50
No related branches found
No related tags found
No related merge requests found
...@@ -96,6 +96,9 @@ GModel::~GModel() ...@@ -96,6 +96,9 @@ GModel::~GModel()
#if defined(HAVE_MESH) #if defined(HAVE_MESH)
delete _fields; delete _fields;
#endif #endif
if(_factory)
delete _factory;
} }
GModel *GModel::current(int index) GModel *GModel::current(int index)
......
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