]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Memory leak corrected (Ch. Klein-Boesing)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Sep 2007 14:44:10 +0000 (14:44 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Sep 2007 14:44:10 +0000 (14:44 +0000)
JETAN/AliLeading.cxx

index 355908958f04d4fcf6472a59a25f9ff88f2eaf75..b49b0c7676d72b02eb4c32ba64232506cc33b6ba 100644 (file)
@@ -86,7 +86,7 @@ void AliLeading::FindLeading(AliJetReader *reader)
   }
   
   // fill correlation array
-  fLeading = (TLorentzVector*) lvArray->At(idxMax);
+  *fLeading = *((TLorentzVector*) lvArray->At(idxMax));
   fFound = kTRUE;
   
   fNassoc = 0;