[Paraview-developers] vtkPVSimpleRenderModule::RemoveDisplay

Moreland, Kenneth kmorel at sandia.gov
Fri Jan 14 14:02:40 EST 2005


vtkPVSimpleRenderModule::RemoveDisplay has the following lines of code.

  this->Displays->RemoveItem(disp);
  disp->RemoveFromRenderer(this->RendererID);

If the Displays collection is the only thing holding a reference to
disp, then disp is deleted before RemoveFromRenderer is called,
resulting in some bad memory access.  Any objection to switching the
order of these two lines?

-Ken

   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********  
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      fax:   (505) 844-0833



More information about the Paraview-developers mailing list