Corrected destructors (J. Thaeder)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Mar 2009 09:18:43 +0000 (09:18 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 25 Mar 2009 09:18:43 +0000 (09:18 +0000)
JETAN/AliJetFinder.cxx
JETAN/AliJetReader.cxx

index 5dcd87f..d8cb7ba 100644 (file)
@@ -76,6 +76,9 @@ AliJetFinder::~AliJetFinder()
   delete fOut;
   // reset and delete control plots
   if (fPlots) delete fPlots;
+  if ( fLeading )
+      delete fLeading;
+  fLeading = NULL;
 }
 
 ////////////////////////////////////////////////////////////////////////
index 6cc730a..18e2005 100755 (executable)
@@ -66,29 +66,29 @@ AliJetReader::AliJetReader():
 AliJetReader::~AliJetReader()
 {
   // Destructor
-  if (fMomentumArray) {
-      fMomentumArray->Delete();
-      delete fMomentumArray;
-  }
-  
-  if (fUnitArray) {
-      delete fUnitArray;
-  }
-  
-  if (fUnitArrayNoCuts) {
-    fUnitArrayNoCuts->Delete();
-    delete fUnitArrayNoCuts;
-  }
-
-  if (fFillUnitArray) {
-    fFillUnitArray->Delete();
-    delete fFillUnitArray;
-  }
-
-  if (fArrayMC) {
-    fArrayMC->Delete();
-    delete fArrayMC;
-  }
+    if (fMomentumArray) {
+       fMomentumArray->Delete();
+       delete fMomentumArray;
+    }
+    
+    if (fUnitArray) {
+       fUnitArray->Delete();
+       delete fUnitArray;
+    }
+    
+    if (fUnitArrayNoCuts) {
+       fUnitArrayNoCuts->Delete();
+       delete fUnitArrayNoCuts;
+    }
+    
+    if (fFillUnitArray) {
+       delete fFillUnitArray;
+    }
+    
+    if (fArrayMC) {
+       fArrayMC->Delete();
+       delete fArrayMC;
+    }
 }