]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Correct memory leaks in ClusterFinder
authormariana <mariana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 10 Feb 2001 22:29:24 +0000 (22:29 +0000)
committermariana <mariana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 10 Feb 2001 22:29:24 +0000 (22:29 +0000)
ITS/AliITSClusterFinderSPDbari.cxx

index c47621d5791b070054630a26923129247475ad40..c7cd04d3b9f7db095a24ce76db0e49539bb313f7 100644 (file)
@@ -364,11 +364,15 @@ void AliITSClusterFinderSPDbari::ClusterFinder(Int_t ndigits,
 
      AliITSRawClusterSPD *clust = new AliITSRawClusterSPD(zcenter[i],xcenter[i],1.,ndz,ndx,0.,0.,0.,0.,0.,0.,0.);
      iTS->AddCluster(0,clust);
+     delete clust;
    }     
    delete[] ifpad;
    delete[] xpad ;
    delete[] zpad ;
    delete[] iclus;
+   delete [] tr1pad;
+   delete [] tr2pad;
+   delete [] tr3pad;
 }
 //______________________________________________________
 void AliITSClusterFinderSPDbari::DigitToPoint(Int_t nclus,
@@ -411,4 +415,6 @@ void AliITSClusterFinderSPDbari::DigitToPoint(Int_t nclus,
         iTS->AddRecPoint(rnew); 
      }
 
+
+
 }