Fix for bug #75588
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Nov 2010 23:12:24 +0000 (23:12 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 22 Nov 2010 23:12:24 +0000 (23:12 +0000)
EVGEN/AliGenCocktailAfterBurner.cxx
STEER/AliRunLoader.cxx

index 0ea62ea6d711d2ab5af3169d0252e2d2606b34ec..640adfa1eec1be990268eac2f4a399aecb015ce1 100644 (file)
@@ -216,6 +216,7 @@ void AliGenCocktailAfterBurner::Generate()
           Vertex();
           for (Int_t j = 0; j < 3; j++) eventVertex[3 * i +  j] = fVertex[j];
           fHeaders[i] = new AliGenCocktailEventHeader();
+          fCollisionGeometries[i] = 0;
        }
 /*********************************************************************/ 
       TIter next(fEntries);
index 425e73e3e945569eeb47c63ad4096970b82e4d0d..3e0f17257a7f1130e6acc91f33258732431c148a 100644 (file)
@@ -128,11 +128,11 @@ AliRunLoader::AliRunLoader(const char* eventfoldername):
 AliRunLoader::~AliRunLoader()
 {
 //dtor
-  if (fgRunLoader == this) fgRunLoader = 0x0;
+
   
   UnloadHeader();
   UnloadgAlice();
-  
+  if (fgRunLoader == this) fgRunLoader = 0x0;  
   if(fLoaders) {
     fLoaders->SetOwner();
     delete fLoaders;