memory leak rectified
authorbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Jun 2008 16:17:39 +0000 (16:17 +0000)
committerbasanta <basanta@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 13 Jun 2008 16:17:39 +0000 (16:17 +0000)
PMD/AliPMDtracker.cxx

index b779770..36e505e 100644 (file)
@@ -106,29 +106,20 @@ AliPMDtracker::~AliPMDtracker()
   if (fRecpoints)
     {
       fRecpoints->Clear();
-      /*
-      fRecpoints->Delete();
-      delete fRecpoints;
-      fRecpoints=0;
-      */
     }
   if (fPMDcontin)
     {
-      fPMDcontin->Clear();
-      /*
       fPMDcontin->Delete();
       delete fPMDcontin;
       fPMDcontin=0;
-      */
+      
     }
   if (fPMDcontout)
   {
-      fPMDcontout->Clear();
-      /*
       fPMDcontout->Delete();
       delete fPMDcontout;
       fPMDcontout=0;
-      */
+
     }
   delete fPMDutil;
 }
@@ -250,6 +241,10 @@ void AliPMDtracker::Clusters2Tracks(AliESDEvent *event)
 
       event->AddPmdTrack(esdpmdtr);
     }
+
+  fPMDcontin->Delete();
+  fPMDcontout->Delete();
+
 }
 //--------------------------------------------------------------------//
 void AliPMDtracker::SetVertex(Double_t vtx[3], Double_t evtx[3])