Commit 3b0663e8 authored by Connor Bowley's avatar Connor Bowley
Browse files

Fix memory leak in VTKRenderer

parent 0b5d584b
...@@ -413,7 +413,7 @@ VTKRenderer::updateCamera() ...@@ -413,7 +413,7 @@ VTKRenderer::updateCamera()
m_camera->SetClippingRange(cam->getNearZ(), cam->getFarZ()); m_camera->SetClippingRange(cam->getNearZ(), cam->getFarZ());
// Copy the projection back to the camera // 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 i = 0; i < 4; i++)
{ {
for (int j = 0; j < 4; j++) for (int j = 0; j < 4; j++)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment