Memory leak cured. Use TClonesArray::Delete() if stored objects allocate memory.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 17 Aug 2007 21:15:34 +0000 (21:15 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 17 Aug 2007 21:15:34 +0000 (21:15 +0000)
STEER/AliESDEvent.cxx

index 0572418dffd305ce922cbaca13492e5161decbca..27a8b7765a07b21cd58cf2bf0522835ff5afdf10 100644 (file)
@@ -288,14 +288,14 @@ void AliESDEvent::ResetStdContent()
   if(fSPDMult)new (fSPDMult) AliMultiplicity();
   if(fPHOSTrigger)fPHOSTrigger->Reset(); 
   if(fEMCALTrigger)fEMCALTrigger->Reset(); 
-  if(fTracks)fTracks->Clear();
+  if(fTracks)fTracks->Delete();
   if(fMuonTracks)fMuonTracks->Clear();
   if(fPmdTracks)fPmdTracks->Clear();
   if(fTrdTracks)fTrdTracks->Clear();
   if(fV0s)fV0s->Clear();
   if(fCascades)fCascades->Clear();
   if(fKinks)fKinks->Clear();
-  if(fCaloClusters)fCaloClusters->Clear();
+  if(fCaloClusters)fCaloClusters->Delete();
   if(fErrorLogs) fErrorLogs->Clear();
 
   // don't reset fconnected fConnected ;