Correct memory leak in Find1DClusters
[u/mrichter/AliRoot.git] / 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;