Fixing memory leak (Francesco, Massimo)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 9 May 2006 16:12:35 +0000 (16:12 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 9 May 2006 16:12:35 +0000 (16:12 +0000)
STEER/AliVertexerTracks.cxx

index 1d6272ed354901cedd12cd64f0dcbdc031b8641c..c3744abb3b02ab3ecfa12ac8b6fc090b6949f3cb 100644 (file)
@@ -140,7 +140,9 @@ AliVertex* AliVertexerTracks::VertexForSelectedTracks(TObjArray *trkArray) {
     trkTree->Fill();
   }
     
-  return VertexForSelectedTracks(trkTree);
+  AliVertex *vtx =  VertexForSelectedTracks(trkTree);
+  delete trkTree;
+  return vtx;
 }
 
 //---------------------------------------------------------------------------