In AliMUONTriggerTrack: fixing memory leak
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Jan 2012 17:28:14 +0000 (17:28 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 16 Jan 2012 17:28:14 +0000 (17:28 +0000)
(Philippe P.)

MUON/AliMUONTriggerTrack.cxx
MUON/AliMUONTriggerTrack.h

index d711b02..3ba4f56 100644 (file)
@@ -142,6 +142,14 @@ theMUONTriggerTrack)
 }
 
 //__________________________________________________________________________
+void AliMUONTriggerTrack::Clear(Option_t* /*opt*/)
+{
+  /// Clean memory
+  delete fCovariances;
+  fCovariances = 0x0;
+}
+
+//__________________________________________________________________________
 void
 AliMUONTriggerTrack::Print(Option_t* opt) const
 {
index ae5f260..bb83b17 100644 (file)
@@ -28,6 +28,8 @@ class AliMUONTriggerTrack : public TObject
                        Float_t slopeX, Float_t slopeY,
                        Int_t iloTrg, Long_t theGTPattern, Int_t ptCutLevel=1); 
     
+    virtual void Clear(Option_t* opt = "");
+    
     // getters
     
     /// Return x position of fired Y strip in MC11