Removed fAODObjecys->Delete(slow) which produces a crash when running with AOD friend...
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Dec 2011 13:39:19 +0000 (13:39 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Dec 2011 13:39:19 +0000 (13:39 +0000)
STEER/AOD/AliAODEvent.cxx

index cc59da6..f4d2237 100644 (file)
@@ -248,7 +248,7 @@ AliAODEvent::~AliAODEvent()
     delete fAODFolder;
     fAODFolder = 0;
     if(!fConnected) {
-       fAODObjects->Delete("slow");
+//       fAODObjects->Delete("slow");
        delete fAODObjects;
     }   
 }
@@ -260,10 +260,10 @@ void AliAODEvent::AddObject(TObject* obj)
   // Please be aware that in order to increase performance you should
   // refrain from using TObjArrays (if possible). Use TClonesArrays, instead.
   
-  if ( !fAODObjects ) {
-     fAODObjects = new TList();
-     fAODObjects->SetOwner();
-  }
+//  if ( !fAODObjects ) {
+//     fAODObjects = new TList();
+//     fAODObjects->SetOwner();
+//  }
   if ( !fAODObjects->FindObject(obj) ) 
   {
     fAODObjects->AddLast(obj);