ESD friend is deleted together with ESD tree - do not deleti it directly in Close().
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 31 Oct 2009 16:08:34 +0000 (16:08 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 31 Oct 2009 16:08:34 +0000 (16:08 +0000)
EVE/EveBase/AliEveEventManager.cxx

index f960b26..f27666d 100644 (file)
@@ -901,7 +901,8 @@ void AliEveEventManager::Close()
 
   if (fESDTree) {
     delete fESD;       fESD       = 0;
-    delete fESDfriend; fESDfriend = 0;
+    // delete fESDfriend; // friend tree is deleted with the tree
+    fESDfriend = 0;
     fESDfriendExists = kFALSE;
 
     delete fESDTree;   fESDTree = 0;