From 342d3b42b8e44fa3d4c78b679a2dbd68249a781d Mon Sep 17 00:00:00 2001 From: haavard Date: Mon, 5 May 2008 07:35:33 +0000 Subject: [PATCH] Correct memory management --- TPC/AliTPCPreprocessor.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/TPC/AliTPCPreprocessor.cxx b/TPC/AliTPCPreprocessor.cxx index 9e3e5d0fe23..ceba9134d17 100644 --- a/TPC/AliTPCPreprocessor.cxx +++ b/TPC/AliTPCPreprocessor.cxx @@ -491,9 +491,8 @@ UInt_t AliTPCPreprocessor::ExtractPedestals(Int_t sourceFXS) AliTPCCalROC *rocRMS=calPed->GetCalRocRMS(sector, kFALSE); if ( rocRMS ) calPadRMS->SetCalROC(rocRMS,sector); } - - f->Close(); delete calPed; + f->Close(); } ++index; } // while(list) @@ -597,8 +596,8 @@ UInt_t AliTPCPreprocessor::ExtractPulser(Int_t sourceFXS) AliTPCCalROC *rocQmean=calPulser->GetCalRocQ(sector); if ( rocQmean ) pulserQmean->SetCalROC(rocQmean,sector); } - f->Close(); delete calPulser; + f->Close(); } ++index; } // while(list) @@ -712,8 +711,8 @@ UInt_t AliTPCPreprocessor::ExtractCE(Int_t sourceFXS) TGraph *grQ=calCE->MakeGraphTimeCE(sector,0,3); // Q time graph if ( grQ ) rocTtime->AddAt(grQ,sector); } - f->Close(); delete calCE; + f->Close(); } ++index; } // while(list) -- 2.39.3