Protection added (M. Gheata)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Oct 2007 15:39:26 +0000 (15:39 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 18 Oct 2007 15:39:26 +0000 (15:39 +0000)
STEER/AliAODHandler.cxx

index 543c802bde04fffe043610678149fc7b63b89d0c..6e450a2c5288743c3c408bb7d1941bea9372bcd4 100644 (file)
@@ -99,7 +99,10 @@ Bool_t AliAODHandler::Terminate()
 Bool_t AliAODHandler::TerminateIO()
 {
     // Terminate IO
 Bool_t AliAODHandler::TerminateIO()
 {
     // Terminate IO
-    fFileA->Close();
+    if (fFileA) {
+       fFileA->Close();
+       delete fFileA;
+    }
     return kTRUE;
 }
 
     return kTRUE;
 }