]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliAODHandler.cxx
Protection added (M. Gheata)
[u/mrichter/AliRoot.git] / 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;
 }