Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
f0a68bfa
Commit
f0a68bfa
authored
6 years ago
by
mattijs
Committed by
Andrew Heather
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
BUG: MeshObject: do not release in destructor. Leave to regIOobject. Fixes #1276.
parent
cd7748f8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/OpenFOAM/meshes/MeshObject/MeshObject.C
+4
-1
4 additions, 1 deletion
src/OpenFOAM/meshes/MeshObject/MeshObject.C
with
4 additions
and
1 deletion
src/OpenFOAM/meshes/MeshObject/MeshObject.C
+
4
−
1
View file @
f0a68bfa
...
@@ -104,7 +104,10 @@ bool Foam::MeshObject<Mesh, MeshObjectType, Type>::Delete(const Mesh& mesh)
...
@@ -104,7 +104,10 @@ bool Foam::MeshObject<Mesh, MeshObjectType, Type>::Delete(const Mesh& mesh)
template
<
class
Mesh
,
template
<
class
>
class
MeshObjectType
,
class
Type
>
template
<
class
Mesh
,
template
<
class
>
class
MeshObjectType
,
class
Type
>
Foam
::
MeshObject
<
Mesh
,
MeshObjectType
,
Type
>::~
MeshObject
()
Foam
::
MeshObject
<
Mesh
,
MeshObjectType
,
Type
>::~
MeshObject
()
{
{
MeshObjectType
<
Mesh
>::
release
();
// We should not do a 'release' at this point since that will upset
// the destructor of regIOobject itself (which gets called after this).
// This now would no longer have the owned-by-registry setting so
// will not clean up after itself
}
}
...
...
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