Reset ntracks to skip when deleting corresponding array (Francsco)
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Aug 2011 15:51:22 +0000 (15:51 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 23 Aug 2011 15:51:22 +0000 (15:51 +0000)
STEER/ESD/AliVertexerTracks.cxx

index 05d56cb..0e09e5c 100644 (file)
@@ -375,7 +375,7 @@ AliESDVertex* AliVertexerTracks::FindPrimaryVertex(const TObjArray *trkArrayOrig
   // clean up
   delete [] fIdSel; fIdSel=NULL;
   fTrkArraySel.Delete();
-  if(fTrksToSkip) { delete [] fTrksToSkip; fTrksToSkip=NULL; }
+  if(fTrksToSkip) { delete [] fTrksToSkip; fTrksToSkip=NULL; fNTrksToSkip=0;}
   //
   
   return fCurrentVertex;