Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gmsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romin Tomasetti
gmsh
Commits
f6c12803
Commit
f6c12803
authored
6 years ago
by
Christophe Geuzaine
Browse files
Options
Downloads
Patches
Plain Diff
call BasisFactory::clearAll() in finalize to delete all static function space data
parent
04a4a671
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Common/GmshGlobal.cpp
+4
-0
4 additions, 0 deletions
Common/GmshGlobal.cpp
with
4 additions
and
0 deletions
Common/GmshGlobal.cpp
+
4
−
0
View file @
f6c12803
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment