Memory leak in vtkUnstructuredGridBunykRayCastFunction
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When using a vtkUnstructuredGridVolumeRayCastMapper to render a volume with vtkUnstructuredGridBunykRayCastFunction there is a memory leak. The leak occurs when something before the mapper in the pipeline is modified and a render requested.
vtkUnstructuredGridBunykRayCastFunction::UpdateTriangleList will be called during the render, it will allocate vtkUnstructuredGridBunykRayCastFunction::TetraTriangles - but not delete the one that had been allocated on the previous call.
I have supplied c++ source to reproduce the leak, and a patch. When the source is compiled and the process will consistently leak ram. Be careful running it for long, it will 100% the cpu and uses up all the ram it can over time.