Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
71382535
Commit
71382535
authored
Nov 12, 2002
by
Charles Law
Browse files
Fixing a bug dereferencing NULL during delete.
parent
4e81f192
Changes
1
Hide whitespace changes
Inline
Side-by-side
Parallel/vtkMPICommunicator.cxx
View file @
71382535
...
...
@@ -26,7 +26,7 @@
#include
"vtkMPI.h"
vtkCxxRevisionMacro
(
vtkMPICommunicator
,
"1.2
7
"
);
vtkCxxRevisionMacro
(
vtkMPICommunicator
,
"1.2
8
"
);
vtkStandardNewMacro
(
vtkMPICommunicator
);
vtkCxxSetObjectMacro
(
vtkMPICommunicator
,
Group
,
vtkMPIGroup
);
...
...
@@ -283,15 +283,18 @@ vtkMPICommunicator::vtkMPICommunicator()
vtkMPICommunicator
::~
vtkMPICommunicator
()
{
// Free the handle if required and asked for.
if
(
this
->
Comm
->
Handle
&&
!
this
->
KeepHandle
)
if
(
this
->
Comm
)
{
if
(
*
(
this
->
Comm
->
Handle
)
!=
MPI_COMM_NULL
)
if
(
this
->
Comm
->
Handle
&&
!
this
->
KeepHandle
)
{
MPI_Comm_free
(
this
->
Comm
->
Handle
);
if
(
*
(
this
->
Comm
->
Handle
)
!=
MPI_COMM_NULL
)
{
MPI_Comm_free
(
this
->
Comm
->
Handle
);
}
}
delete
this
->
Comm
->
Handle
;
delete
this
->
Comm
;
}
delete
this
->
Comm
->
Handle
;
delete
this
->
Comm
;
this
->
SetGroup
(
0
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment