protections against failures in deleting event content
[u/mrichter/AliRoot.git] / PWG / EMCAL / AliEmcalEsdTpcTrackTask.cxx
index 7e09f2c..f79b287 100644 (file)
@@ -88,6 +88,7 @@ void AliEmcalEsdTpcTrackTask::UserExec(Option_t *)
   }
 
   // add tracks to event if not yet there
+  fTracks->Delete();
   if (!(InputEvent()->FindListObject(fTracksName)))
     InputEvent()->AddObject(fTracks);