Correct memory leak in Find1DClusters
authormariana <mariana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 10 Feb 2001 22:29:53 +0000 (22:29 +0000)
committermariana <mariana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 10 Feb 2001 22:29:53 +0000 (22:29 +0000)
ITS/AliITSClusterFinderSPD.cxx

index 8d620e37d2b0642e7b08470a9d81975e3781883e..d1b1a67896cb29f1e266c24a13f394a2d6add646 100644 (file)
@@ -213,6 +213,7 @@ void AliITSClusterFinderSPD::Find1DClusters()
            AliITSRawClusterSPD *clust = new AliITSRawClusterSPD(clusterZ,clusterX,clusterCharge,clusterSizeZ,clusterSizeX,xstart,xstop,xstartfull,xstopfull,zstart,zstop,k);
            // fClusters->Add(point);
            iTS->AddCluster(0,clust);
+           delete clust;
            //              cout << "Cluster at Ladder: " << fLadder << ", Detector: " <<fDetector<<endl;
            
            // cout<<" end of cluster finding for Z pixel "<<endl;