Merge pull request #3347 from Nerei:memory_leak_in_viz_opencv30
This commit is contained in:
commit
c45d2642ca
@ -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…
x
Reference in New Issue
Block a user