]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
correct deletion of tree
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 Jul 2006 08:12:35 +0000 (08:12 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 24 Jul 2006 08:12:35 +0000 (08:12 +0000)
PWG0/AliSelector.cxx

index 12b5a5f75145144c519db891f372facc85281c9e..be5c417efd196186d47ee1808157c834b5c33554 100644 (file)
@@ -59,8 +59,14 @@ AliSelector::~AliSelector()
   // Destructor
   //
 
-  // histograms are in the output list and deleted when the output
-  // list is deleted by the TSelector dtor
+ if (fTree)
+   fTree->ResetBranchAddresses();
+
+ if (fESD)
+ {
+   delete fESD;
+   fESD = 0;
+ }
 }
 
 void AliSelector::Begin(TTree*)