Implementation of task destructors (B.Hippolyte)
authorbhippoly <bhippoly@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 28 Mar 2010 16:29:05 +0000 (16:29 +0000)
committerbhippoly <bhippoly@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 28 Mar 2010 16:29:05 +0000 (16:29 +0000)
PWG2/SPECTRA/AliAnalysisTaskCheckV0.cxx
PWG2/SPECTRA/AliAnalysisTaskCheckV0.h
PWG2/SPECTRA/AliAnalysisTaskStrange.cxx
PWG2/SPECTRA/AliAnalysisTaskStrange.h

index 5941e90..bf0f727 100644 (file)
@@ -95,7 +95,11 @@ AliAnalysisTaskCheckV0::AliAnalysisTaskCheckV0(const char *name)
   // Output slot #1 writes into a TList container
   DefineOutput(1, TList::Class());
 }
-
+//________________________________________________________________________
+AliAnalysisTaskCheckV0::~AliAnalysisTaskCheckV0(){
+  // Destructor
+  if (fListHist) { delete fListHist; fListHist = 0x0; }
+}
 //________________________________________________________________________
 void AliAnalysisTaskCheckV0::UserCreateOutputObjects()
 {
index ac96022..90ee9fa 100644 (file)
@@ -24,7 +24,7 @@ class AliAnalysisTaskCheckV0 : public AliAnalysisTaskSE {
  public:
   AliAnalysisTaskCheckV0();
   AliAnalysisTaskCheckV0(const char *name);
-  virtual ~AliAnalysisTaskCheckV0() {}
+ ~AliAnalysisTaskCheckV0();
   
   virtual void   UserCreateOutputObjects();
   virtual void   UserExec(Option_t *option);
index 0b703e1..43abe79 100644 (file)
@@ -93,7 +93,11 @@ AliAnalysisTaskStrange::AliAnalysisTaskStrange(const char *name)
   // Output slot #1 writes into a TList container
   DefineOutput(1, TList::Class());
 }
-
+//________________________________________________________________________
+AliAnalysisTaskStrange::~AliAnalysisTaskStrange(){
+  // Destructor
+  if (fListHist) { delete fListHist; fListHist = 0x0; }
+}
 //________________________________________________________________________
 void AliAnalysisTaskStrange::UserCreateOutputObjects() 
 {
index 48d6ed1..b4626aa 100644 (file)
@@ -24,7 +24,7 @@ class AliAnalysisTaskStrange : public AliAnalysisTaskSE {
  public:
   AliAnalysisTaskStrange();
   AliAnalysisTaskStrange(const char *name);
-  virtual ~AliAnalysisTaskStrange() {}
+ ~AliAnalysisTaskStrange();
   
   virtual void   UserCreateOutputObjects();
   virtual void   UserExec(Option_t *option);