Introduce SetOwner() as suggested by Jacek
authorcblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Oct 2010 20:15:49 +0000 (20:15 +0000)
committercblume <cblume@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Oct 2010 20:15:49 +0000 (20:15 +0000)
TRD/AliTRDCalibTask.cxx
TRD/AliTRDCalibraVdriftLinearFit.cxx

index aadec5e..6a86014 100644 (file)
@@ -293,6 +293,7 @@ void AliTRDCalibTask::UserCreateOutputObjects()
   
   // output list
   fListHist = new TList();
+  fListHist->SetOwner();
   if(fHisto2d) {  
     fListHist->Add(fTRDCalibraFillHisto->GetCH2d());
     fListHist->Add(fTRDCalibraFillHisto->GetPH2d()); 
index 4a9c859..3dbc686 100644 (file)
@@ -117,6 +117,10 @@ AliTRDCalibraVdriftLinearFit::~AliTRDCalibraVdriftLinearFit() /*FOLD00*/
   //
   // destructor
   //
+  fLinearFitterHistoArray.SetOwner();
+  fLinearFitterPArray.SetOwner();
+  fLinearFitterEArray.SetOwner();
+
   fLinearFitterHistoArray.Delete();
   fLinearFitterPArray.Delete();
   fLinearFitterEArray.Delete();