Fix of the memory leak from L.Aphecetche
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Nov 2009 11:00:02 +0000 (11:00 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Nov 2009 11:00:02 +0000 (11:00 +0000)
STEER/AliESDMuonCluster.cxx

index 8a9317c..7ee9e30 100644 (file)
@@ -112,10 +112,11 @@ AliESDMuonCluster::~AliESDMuonCluster()
 }
 
 //__________________________________________________________________________
-void AliESDMuonCluster::Clear(Option_t* opt)
+void AliESDMuonCluster::Clear(Option_t* /*opt*/)
 {
   /// Clear arrays
-  if (fPads) fPads->Clear(opt);
+  delete fPads;
+  fPads = 0x0;
 }
 
 //_____________________________________________________________________________