Merge pull request #3346 from Nerei:fixed_memory_leak_in_viz
This commit is contained in:
commit
40efd17be4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user