Fix for #63914: Increasing time per event
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Aug 2011 08:02:51 +0000 (08:02 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 16 Aug 2011 08:02:51 +0000 (08:02 +0000)
STEER/STEER/AliDataLoader.cxx

index 3f4b869..c0fcdf1 100644 (file)
@@ -432,10 +432,12 @@ void AliDataLoader::CloseFile()
       if (bl->IsLoaded()) return;
     }
   
-  AliDebug(1, "Closing and deleting (object) file.");
+  AliDebug(1, "Closing (object) file.");
   
-  delete fFile;
-  fFile = 0x0;
+  if (fFile) {
+    fFile->Close("R");
+    fFile = 0x0;
+  }
   fDirectory = 0x0;
 }