From: laphecet Date: Tue, 7 Sep 2010 14:20:15 +0000 (+0000) Subject: Fixing a memory leak. The cluster array *must* be deleted and not only cleared, other... X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=ca0b0ca1012f287a32e725a3c9d34ecec8081bb9;p=u%2Fmrichter%2FAliRoot.git Fixing a memory leak. The cluster array *must* be deleted and not only cleared, otherwise the *content* (fCont) of the TObjArray data member of the AliMUONCluster objects are not properly released --- diff --git a/MUON/AliMUONPreClusterFinder.cxx b/MUON/AliMUONPreClusterFinder.cxx index 4f7d69eb648..35422cf5bca 100644 --- a/MUON/AliMUONPreClusterFinder.cxx +++ b/MUON/AliMUONPreClusterFinder.cxx @@ -89,7 +89,7 @@ AliMUONPreClusterFinder::Prepare(Int_t detElemId, { /// Prepare for clustering, by giving access to segmentations and digit lists - fClusters.Clear("C"); + fClusters.Delete(); fPads = pads; fDetElemId = detElemId;