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;
#include "OS.h"
#include "Context.h"
#include "robustPredicates.h"
#include "BasisFactory.h"
#if defined(HAVE_PARSER)
#include "Parser.h"
......@@ -247,6 +248,9 @@ int GmshFinalize()
PViewData::removeAllInterpolationSchemes();
#endif
// Delete static interpolation bases
BasisFactory::clearAll();
// Delete all Gmodels
while(GModel::list.size() > 0) delete GModel::list[GModel::list.size() - 1];
std::vector<GModel *>().swap(GModel::list);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment