Skip to content

Commit

Permalink
BUG #16744: Resources are not removed for a renderer removed from the…
Browse files Browse the repository at this point in the history
… window.

A loop where the render window is kept around and everything in the pipeline is removed
and added at the next iteration leaks memory, in OpenGL, linux. For the OpenGL2 backend same
loop does not leak.
  • Loading branch information
danlipsa committed Jun 13, 2016
1 parent 2d7055f commit b985df4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Rendering/Core/vtkRenderWindow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ void vtkRenderWindow::RemoveRenderer(vtkRenderer *ren)
// we are its parent
if (ren->GetRenderWindow() == this)
{
ren->ReleaseGraphicsResources(this);
ren->SetRenderWindow(NULL);
}
this->Renderers->RemoveItem(ren);
Expand Down

0 comments on commit b985df4

Please sign in to comment.