Skip to content
Snippets Groups Projects
Commit 3af21ae5 authored by Michel Rasquin's avatar Michel Rasquin
Browse files

Keep essential objects for multiple calls to gmsh lib. In particular, do not...

Keep essential objects for multiple calls to gmsh lib. In particular, do not delete PViewOptions::reference() and CTX::instance().
parent 6a4cb61a
No related branches found
No related tags found
No related merge requests found
...@@ -240,17 +240,12 @@ int GmshFinalize() ...@@ -240,17 +240,12 @@ int GmshFinalize()
// Delete static _interpolationSchemes of PViewData class // Delete static _interpolationSchemes of PViewData class
PViewData::removeAllInterpolationSchemes(); PViewData::removeAllInterpolationSchemes();
// Delete static _reference of PViewOptions class
delete PViewOptions::reference();
#endif #endif
// Delete all Gmodels // Delete all Gmodels
for(unsigned int i = 0; i < GModel::list.size(); i++) for(unsigned int i = 0; i < GModel::list.size(); i++)
delete GModel::list[i]; delete GModel::list[i];
GModel::list.clear(); GModel::list.clear();
// Delete CTX instance
delete CTX::instance();
return 1; return 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment