Skip to content
Snippets Groups Projects
Commit a08f7774 authored by Christos Tsolakis's avatar Christos Tsolakis
Browse files

vtkWebApplication::StillRender replace raw pointer with vtkSmartPointer

Avoids memory leak
parent 89a1622f
No related branches found
No related tags found
No related merge requests found
......@@ -205,7 +205,7 @@ vtkUnsignedCharArray* vtkWebApplication::StillRender(vtkRenderWindow* view, int
w2i->FixBoundaryOn();
w2i->Update();
vtkImageData* image = vtkImageData::New();
auto image = vtkSmartPointer<vtkImageData>::New();
image->ShallowCopy(w2i->GetOutput());
// vtkTimerLog::MarkEndEvent("CaptureWindow");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment