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 4233712..439bc2b 100644 (file)
@@ -262,6 +262,9 @@ AliTPCcalibTimeGain::~AliTPCcalibTimeGain(){
   //
   //
   //
+  delete fHistGainTime;
+  delete fGainVsTime;
+  delete fHistDeDxTotal;
 }
 
 
index e0d3499..6657eb6 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