Merge pull request #3347 from Nerei:memory_leak_in_viz_opencv30

pull/3349/head
Vadim Pisarevsky 11 years ago
commit c45d2642ca
  1. 2
      modules/viz/src/vtk/vtkImageMatSource.cpp

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

Loading…
Cancel
Save