]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
memory management
authorsnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Mar 2011 15:48:34 +0000 (15:48 +0000)
committersnelling <snelling@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 Mar 2011 15:48:34 +0000 (15:48 +0000)
PWG2/FLOW/AliFlowTasks/AliAnalysisTaskFlowEvent.cxx
PWG2/FLOW/AliFlowTasks/AliFlowEvent.cxx

index 6dbe7d5ecc570082b8ab7a8d41c4e2183ca4dd09..ea409e912f06769109ad34c19cfac01c4058eefd 100644 (file)
@@ -214,6 +214,7 @@ AliAnalysisTaskFlowEvent::~AliAnalysisTaskFlowEvent()
   // Destructor
   //
   delete fMyTRandom3;
+  delete fFlowEvent;
   // objects in the output list are deleted
   // by the TSelector dtor (I hope)
 
index 7719f7d199a96c8b227337cfa07ac9c83ed80a0a..845d8bfafccc5602bf314841f24b53c60fa11e09 100644 (file)
@@ -693,7 +693,7 @@ AliFlowTrack* AliFlowEvent::ReuseTrack(Int_t i)
   else 
   {
     pTrack = new AliFlowTrack();
-    fTrackCollection->Add(pTrack);
+    fTrackCollection->AddAtAndExpand(pTrack,i);
   }
   return pTrack;
 }