[vtkusers] vtkTimerLog: leaks (valgrind)
    N Smethurst 
    nick.smethurst at free.fr
       
    Wed Apr 30 12:35:58 EDT 2003
    
    
  
My 2 centimes :
vtkTimerLogEntry isn't a vtkObject so it has no knowledge of reference 
counting. Shouldn't the destructor contain clean up code for TimerLog ?
vtkTimerLog::~vtkTimerLog()
{
  if (vtkTimerLog::TimerLog != NULL)
    {
    delete [] vtkTimerLog::TimerLog;
    }
}
> In vtkTimerLog.h, vtkTimerLogEntry is declared as a struct outside of
> the class and the allocation is outside of the constructor. So my
> question is: Does VTK reference counting works also in that case ? Or is
> this a valgrind problem ?
    
    
More information about the vtkusers
mailing list