Changed deletion order in the destructor
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Dec 2011 14:19:39 +0000 (14:19 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 Dec 2011 14:19:39 +0000 (14:19 +0000)
STEER/AOD/AliAODEvent.cxx

index e26920f..99420f6 100644 (file)
@@ -244,11 +244,12 @@ AliAODEvent & AliAODEvent::operator=(const AliAODEvent& aod) {
 AliAODEvent::~AliAODEvent() 
 {
 // destructor
+    delete fAODFolder;
+    fAODFolder = 0;
     if(!fConnected) {
        fAODObjects->Delete("slow");
        delete fAODObjects;
     }   
-    delete fAODFolder;
 }
 
 //______________________________________________________________________________