memory leak in constructor or vtkQtLabelSizeCalculator
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
There is a memory leak in this constructor code because memory is created for LableSizeArrayName in the base class constructor and that memory is lost when you set the pointer to 0 in this function.
1.1 (jfsheph 22-Apr-09): vtkQtLabelSizeCalculator::vtkQtLabelSizeCalculator() 1.1 (jfsheph 22-Apr-09): { 1.1 (jfsheph 22-Apr-09): if(!QApplication::instance()) 1.1 (jfsheph 22-Apr-09): { 1.1 (jfsheph 22-Apr-09): int argc = 0; 1.1 (jfsheph 22-Apr-09): new QApplication(argc, 0); 1.3 (jfsheph 11-May-09): } 1.1 (jfsheph 22-Apr-09): 1.3 (jfsheph 11-May-09): this->Implementation = new Internals; 1.3 (jfsheph 11-May-09): // Always defined but user may set to NULL. 1.3 (jfsheph 11-May-09): this->Implementation->FontProperties[0] = vtkSmartPointer::New(); 1.1 (jfsheph 22-Apr-09): this->LabelSizeArrayName = 0; 1.1 (jfsheph 22-Apr-09): this->SetLabelSizeArrayName( "LabelSize" ); 1.3 (jfsheph 11-May-09): this->SetInputArrayToProcess(0, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, "LabelText"); 1.3 (jfsheph 11-May-09): this->SetInputArrayToProcess(1, 0, 0, vtkDataObject::FIELD_ASSOCIATION_POINTS, "Type"); 1.1 (jfsheph 22-Apr-09): }