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 5941e906859efd5919e31af6046f8e6a5eccba32..bf0f7277eac590e62b9207bca03759ad66eb1830 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 ac9602267a28e4c71d14e465c5464f0b9e5b0b6c..90ee9fadca76e3dbd8950f312dac5bf33d884495 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 0b703e1c65f5672c6acbedfe286ecbc839bdb047..43abe791dda488961c8b7fdcbf8cef3ec6ffaa21 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 48d6ed1157548c199320a18a235ace5636a640bb..b4626aa7b11a9c6e76cc572334bb6f1e2398bbbb 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);