[vtkusers] vtkDebugLeaks still leaking

Roland Schwarz roland.schwarz at chello.at
Thu Mar 14 07:44:16 EST 2002


Oh, I am so sorry,
my suggested fix solved only part of the problem.
When the hash-table is exhausted there are still nodes lying around in
memory.
The 'correct' destructor should be:

vtkDebugLeaksHashTable::~vtkDebugLeaksHashTable()
{
  vtkDebugLeaksHashNode *pos;
  vtkDebugLeaksHashNode *posCur;

  int i;
  for (i = 0; i < 64; i++)
    {
    pos = this->Nodes[i];
    while (pos)


    posCur = pos;
    pos = pos->Next;
    delete posCur;
    }
  }
}

BTW.: Prabhu Ramachandran suggested to post a CC to
vtk-developers at public.kitware.com

Is this an established procedure, and wanted by the VTK developers?

Thank you,
Roland







More information about the vtkusers mailing list