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
iMSTK
iMSTK
Commits
3b0663e8
Commit
3b0663e8
authored
Nov 18, 2021
by
Connor Bowley
Browse files
Fix memory leak in VTKRenderer
parent
0b5d584b
Changes
1
Show whitespace changes
Inline
Side-by-side
Source/Rendering/VTKRenderer/imstkVTKRenderer.cpp
View file @
3b0663e8
...
...
@@ -413,7 +413,7 @@ VTKRenderer::updateCamera()
m_camera
->
SetClippingRange
(
cam
->
getNearZ
(),
cam
->
getFarZ
());
// Copy the projection back to the camera
vtkMatrix4x4
*
projVtk
=
m_camera
->
GetProjectionTransformMatrix
(
m_vtkRenderer
);
auto
projVtk
=
vtkSmartPointer
<
vtkMatrix4x4
>::
Take
(
m_camera
->
GetProjectionTransformMatrix
(
m_vtkRenderer
)
)
;
for
(
int
i
=
0
;
i
<
4
;
i
++
)
{
for
(
int
j
=
0
;
j
<
4
;
j
++
)
...
...
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