Thank you, @sankhesh , for your response. I tried your suggestions with different versions of VTK and Visual Studio, but the issue persists. Through my testing, I observed that the memory leaks stop if I do not add a vtkRenderer
to the vtkRenderWindow
. I also tried to add it with a different way as below but the problem does not solved.
vtkRenderer->SetRenderWindow(vtkRenderWindow);
vtkRenderWindow->GetRenderers()->AddItem(vtkRenderer)