Memory leaks removal
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Nov 2009 11:34:23 +0000 (11:34 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 12 Nov 2009 11:34:23 +0000 (11:34 +0000)
Problem with full statistic merging
(Marian)

TPC/AliTPCcalibTimeGain.cxx
TPC/AliTPCcalibTrigger.cxx

index 423371208cc171ebdc179507754a054cf80d82f4..439bc2b2924286b79e5f8109d4f25b6d94066fd7 100644 (file)
@@ -262,6 +262,9 @@ AliTPCcalibTimeGain::~AliTPCcalibTimeGain(){
   //
   //
   //
+  delete fHistGainTime;
+  delete fGainVsTime;
+  delete fHistDeDxTotal;
 }
 
 
index e0d34998647f79f101bab2ecdbf036299d4107b4..6657eb64562d4197ff03a626c7983355a74c2a10 100644 (file)
@@ -99,6 +99,18 @@ AliTPCcalibTrigger::AliTPCcalibTrigger(const char * name, const char * title):
   fHisMap = new TMap;
 }
 
+AliTPCcalibTrigger::~AliTPCcalibTrigger(){
+  //
+  // delete histograms
+  // class is owner of all histograms
+  //
+  if (!fHisMap) return;
+  fHisMap->SetOwner(kTRUE);
+  fHisMap->DeleteAll();
+  delete fHisMap;
+}
+
+
 Long64_t AliTPCcalibTrigger::Merge(TCollection *li) {
   //
   // Merge histograms