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
Model registry
Operate
Environments
Monitor
Incidents
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
Larry Price
gmsh
Commits
01018a0e
Commit
01018a0e
authored
14 years ago
by
Jonathan Lambrechts
Browse files
Options
Downloads
Patches
Plain Diff
remove a few minor memory leaks
parent
7657d38e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Mesh/Field.cpp
+4
-0
4 additions, 0 deletions
Mesh/Field.cpp
Mesh/Field.h
+1
-0
1 addition, 0 deletions
Mesh/Field.h
with
5 additions
and
0 deletions
Mesh/Field.cpp
+
4
−
0
View file @
01018a0e
...
...
@@ -1393,6 +1393,10 @@ FieldManager::FieldManager()
map_type_name
[
"MaxEigenHessian"
]
=
new
FieldFactoryT
<
MaxEigenHessianField
>
();
background_field
=
-
1
;
}
FieldManager
::~
FieldManager
(){
for
(
std
::
map
<
std
::
string
,
FieldFactory
*>::
iterator
it
=
map_type_name
.
begin
();
it
!=
map_type_name
.
end
();
it
++
)
delete
it
->
second
;
}
#if defined(HAVE_POST)
void
Field
::
putOnNewView
()
...
...
This diff is collapsed.
Click to expand it.
Mesh/Field.h
+
1
−
0
View file @
01018a0e
...
...
@@ -94,6 +94,7 @@ class FieldManager : public std::map<int, Field*> {
int
newId
();
int
maxId
();
FieldManager
();
~
FieldManager
();
int
background_field
;
// compatibility with -bgm
void
setBackgroundMesh
(
int
iView
);
...
...
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