viz: fixed memory leak, issue 3961

pull/3346/head
Anatoly Baksheev 10 years ago
parent 436342d5f4
commit 0f2b7fbc45
  1. 2
      modules/viz/src/vtk/vtkImageMatSource.cpp

@ -52,7 +52,7 @@ namespace cv { namespace viz
cv::viz::vtkImageMatSource::vtkImageMatSource()
{
this->SetNumberOfInputPorts(0);
this->ImageData = vtkImageData::New();
this->ImageData = vtkSmartPointer<vtkImageData>::New();
}
int cv::viz::vtkImageMatSource::RequestInformation(vtkInformation *, vtkInformationVector**, vtkInformationVector *outputVector)

Loading…
Cancel
Save