From: mariana Date: Sat, 10 Feb 2001 22:29:24 +0000 (+0000) Subject: Correct memory leaks in ClusterFinder X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=a0d3be8744be3409b6cdcd26efe3ccf22a8784e1 Correct memory leaks in ClusterFinder --- diff --git a/ITS/AliITSClusterFinderSPDbari.cxx b/ITS/AliITSClusterFinderSPDbari.cxx index c47621d5791..c7cd04d3b9f 100644 --- a/ITS/AliITSClusterFinderSPDbari.cxx +++ b/ITS/AliITSClusterFinderSPDbari.cxx @@ -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); } + + }