... and removed a potential memory leak
authormvl <mvl@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 May 2007 22:16:59 +0000 (22:16 +0000)
committermvl <mvl@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 May 2007 22:16:59 +0000 (22:16 +0000)
EMCAL/AliEMCALTracker.cxx

index b6c8290..e87493b 100644 (file)
@@ -259,6 +259,10 @@ Int_t AliEMCALTracker::LoadClusters(TTree *cTree)
                return 1;
        }
        
+       branch->SetAddress(0);
+        clusters->Delete();
+        delete clusters;
+
        AliInfo(Form("Collected %d clusters", fClusters->GetEntries()));
 
        return 0;