viz: fixed memory leak

pull/3347/head
Anatoly Baksheev 11 years ago
parent 8658aef3bf
commit cb95d1df35
  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