Merge pull request #3347 from Nerei:memory_leak_in_viz_opencv30

This commit is contained in:
Vadim Pisarevsky 2014-10-18 16:57:35 +00:00
commit c45d2642ca

View File

@ -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)