1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

viz: fixed memory leak, issue 3961

This commit is contained in:
Anatoly Baksheev
2014-10-18 18:12:36 +04:00
parent 436342d5f4
commit 0f2b7fbc45
+1 -1
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)