]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONClusterInput.cxx
Fixing a memory leak
[u/mrichter/AliRoot.git] / MUON / AliMUONClusterInput.cxx
index e3e990de1e3463d824d3a57292d46f37b7df61f1..99a62c6cb2e4268298b44c887f3d6d5e3ba2e11e 100644 (file)
@@ -65,6 +65,8 @@ AliMUONClusterInput::~AliMUONClusterInput()
 // Destructor
     delete fgMinuit;
     delete fgMathieson;
+    fgMinuit = 0;
+    fgMathieson = 0;
 }
 
 AliMUONClusterInput::AliMUONClusterInput(const AliMUONClusterInput& clusterInput):TObject(clusterInput)
@@ -84,6 +86,7 @@ void AliMUONClusterInput::SetDigits(Int_t chamber, Int_t idDE, TClonesArray* dig
     fNDigits[0] = dig1->GetEntriesFast();
     fNDigits[1] = dig2->GetEntriesFast();
     
+    delete fgMathieson;
     fgMathieson = new AliMUONMathieson();
 
     AliMUON *pMUON;