leak fix
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Nov 2010 14:00:33 +0000 (14:00 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Nov 2010 14:00:33 +0000 (14:00 +0000)
PWG4/JetTasks/AliAnalyseLeadingTrackUE.cxx

index 4fbd132..17fd454 100644 (file)
@@ -433,6 +433,8 @@ TObjArray*  AliAnalyseLeadingTrackUE::SortRegions(const AliVParticle* leading, T
   TList *transverse2 = new TList();
   
   TObjArray *regionParticles = new TObjArray;
+  regionParticles->SetOwner(kTRUE);
+  
   regionParticles->AddLast(toward);
   regionParticles->AddLast(away);
   regionParticles->AddLast(transverse1);
@@ -503,6 +505,8 @@ Bool_t  AliAnalyseLeadingTrackUE::TriggerSelection(const TObject* obj)
        if (!(((AliInputEventHandler*)obj)->IsEventSelected()&AliVEvent::kMB))return kFALSE;
         }                                
 
+  // TODO for AOD input trigger bit needs to be checked too (is stored in the AOD)
+
   return kTRUE;
 
 }