Skip to content
Snippets Groups Projects
Commit f6c12803 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

call BasisFactory::clearAll() in finalize to delete all static function space data

parent 04a4a671
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ typedef unsigned long intptr_t; ...@@ -24,6 +24,7 @@ typedef unsigned long intptr_t;
#include "OS.h" #include "OS.h"
#include "Context.h" #include "Context.h"
#include "robustPredicates.h" #include "robustPredicates.h"
#include "BasisFactory.h"
#if defined(HAVE_PARSER) #if defined(HAVE_PARSER)
#include "Parser.h" #include "Parser.h"
...@@ -247,6 +248,9 @@ int GmshFinalize() ...@@ -247,6 +248,9 @@ int GmshFinalize()
PViewData::removeAllInterpolationSchemes(); PViewData::removeAllInterpolationSchemes();
#endif #endif
// Delete static interpolation bases
BasisFactory::clearAll();
// Delete all Gmodels // Delete all Gmodels
while(GModel::list.size() > 0) delete GModel::list[GModel::list.size() - 1]; while(GModel::list.size() > 0) delete GModel::list[GModel::list.size() - 1];
std::vector<GModel *>().swap(GModel::list); std::vector<GModel *>().swap(GModel::list);
......
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