Commit 0f2b7fbc authored by Anatoly Baksheev's avatar Anatoly Baksheev

viz: fixed memory leak, issue 3961

parent 436342d5
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment