Merge pull request #3346 from Nerei:fixed_memory_leak_in_viz

This commit is contained in:
Vadim Pisarevsky 2014-10-18 16:57:55 +00:00
commit 40efd17be4

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)