X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EMCAL%2FAliEMCALLoader.cxx;h=663f6b95dadf9922cbbf3aa3c8b51fd926973671;hb=2c8efea8ebdcba8caad6bb82eb17c89421670fcb;hp=5219e943e58a1a961dfe67fa160482a1c70b9356;hpb=1ffd3002ad215d656b69bd8b9d32919ba872fe06;p=u%2Fmrichter%2FAliRoot.git diff --git a/EMCAL/AliEMCALLoader.cxx b/EMCAL/AliEMCALLoader.cxx index 5219e943e58..663f6b95dad 100644 --- a/EMCAL/AliEMCALLoader.cxx +++ b/EMCAL/AliEMCALLoader.cxx @@ -256,9 +256,7 @@ Int_t AliEMCALLoader::GetEvent() TBranch * branchS = treeS->GetBranch(fDetectorName); branchS->ResetAddress(); if (fSDigits) { - fSDigits->Delete(); - delete fSDigits; - fSDigits = 0x0; + fSDigits->Clear(); } branchS->SetAddress(&fSDigits); treeS->GetEvent(0); @@ -270,9 +268,7 @@ Int_t AliEMCALLoader::GetEvent() TBranch * branchD = treeD->GetBranch(fDetectorName); branchD->ResetAddress(); if (fDigits) { - fDigits->Delete(); - delete fDigits; - fDigits = 0x0; + fDigits->Clear(); } branchD->SetAddress(&fDigits); treeD->GetEvent(0); @@ -284,9 +280,7 @@ Int_t AliEMCALLoader::GetEvent() TBranch * branchR = treeR->GetBranch(fgkECARecPointsBranchName); branchR->ResetAddress(); if (fRecPoints) { - fRecPoints->Delete(); - delete fRecPoints; - fRecPoints = 0x0; + fRecPoints->Clear(); } branchR->SetAddress(&fRecPoints); treeR->GetEvent(0);