From: cussonno Date: Fri, 11 Feb 2005 09:51:01 +0000 (+0000) Subject: Remove memory leak (A. Zinchenko) X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=ddf8948c1d98fafb2e09ae6d6c9ecbd06298812b;p=u%2Fmrichter%2FAliRoot.git Remove memory leak (A. Zinchenko) --- diff --git a/MUON/AliMUONEventReconstructor.cxx b/MUON/AliMUONEventReconstructor.cxx index 64eb0afe5c2..9bcfafdf63f 100644 --- a/MUON/AliMUONEventReconstructor.cxx +++ b/MUON/AliMUONEventReconstructor.cxx @@ -1183,8 +1183,8 @@ Int_t AliMUONEventReconstructor::MakeTrackCandidatesWithTwoSegments(AliMUONSegme // increment number of track candidates with 2 segments nbCan2Seg++; } + delete extrapSegment; // should not delete HitForRec's it points to !!!! } // for (iEndSegment = 0;... - delete extrapSegment; // should not delete HitForRec's it points to !!!! return nbCan2Seg; } @@ -1245,9 +1245,8 @@ Int_t AliMUONEventReconstructor::MakeTrackCandidatesWithOneSegmentAndOnePoint(Al // increment number of track candidates nbCan1Seg1Hit++; } + delete extrapHitForRec; } // for (iHit = iHitMin;... - delete extrapHitForRec; - extrapHitForRec = NULL; } // for (ch = ch2;... return nbCan1Seg1Hit; }