fix for missing delete
authorConstantin Loizides <cloizides@lbl.gov>
Mon, 9 Dec 2013 21:30:01 +0000 (22:30 +0100)
committerConstantin Loizides <cloizides@lbl.gov>
Mon, 9 Dec 2013 21:47:54 +0000 (22:47 +0100)
EMCAL/AliEMCALRecoUtils.cxx

index ced4254..76cd548 100644 (file)
@@ -2153,17 +2153,12 @@ Bool_t AliEMCALRecoUtils::ExtrapolateTrackToEMCalSurface(AliVTrack *track,
                                              etaout, 
                                              phiout,
                                              ptout);
-
+  delete trackParam;
   if (!ret)
     return kFALSE;
-
   if (TMath::Abs(etaout)>0.75 || (phiout<70*TMath::DegToRad()) || (phiout>190*TMath::DegToRad()))
     return kFALSE;
-
   track->SetTrackPhiEtaPtOnEMCal(phiout, etaout, ptout);
-
-  if(trackParam) delete trackParam;
-
   return kTRUE;
 }