Additional initialization. Do not remove fHeader, it is done in AliRunLoader
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 8 Feb 2005 14:14:12 +0000 (14:14 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 8 Feb 2005 14:14:12 +0000 (14:14 +0000)
EVGEN/AliGenCocktail.cxx

index 8ede907..084f332 100644 (file)
@@ -60,7 +60,9 @@ AliGenCocktail::~AliGenCocktail()
 {
 // Destructor
     delete fEntries;
-    delete fHeader;
+    fEntries = 0;
+    //    delete fHeader; // It is removed in AliRunLoader
+    fHeader = 0;
 }
 
 void AliGenCocktail::
@@ -105,7 +107,11 @@ AddGenerator(AliGenerator *Generator, const char* Name, Float_t RateExp)
     
      fEntries->Add(entry);
      fNGenerators++;
- }
+     flnk1 = 0;
+     flnk2 = 0;
+     fRandom  = kFALSE;
+     fHeader  = 0;
+}
 
   void AliGenCocktail::Init()
 {