protections against failures in deleting event content
[u/mrichter/AliRoot.git] / PWGJE / EMCALJetTasks / AliHadCorrTask.cxx
index 5ace53e..120dce8 100644 (file)
@@ -509,6 +509,7 @@ Bool_t AliHadCorrTask::Run()
   // Run the hadronic correction
 
   // post output in event if not yet present
+  fOutClusters->Delete();
   if (!(InputEvent()->FindListObject(fOutCaloName)))
     InputEvent()->AddObject(fOutClusters);