From 80453a9fd33d1202229292bedd1d12174b06c4f1 Mon Sep 17 00:00:00 2001 From: gconesab Date: Mon, 18 Oct 2010 17:11:53 +0000 Subject: [PATCH] do not delete the pedestal and calibration pointers in reconstructor, pointers filled with data from OCDB --- EMCAL/AliEMCALReconstructor.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/EMCAL/AliEMCALReconstructor.cxx b/EMCAL/AliEMCALReconstructor.cxx index 08607e506a6..61c5955021e 100644 --- a/EMCAL/AliEMCALReconstructor.cxx +++ b/EMCAL/AliEMCALReconstructor.cxx @@ -113,7 +113,7 @@ AliEMCALReconstructor::AliEMCALReconstructor() if(!fPedestalData) { AliCDBEntry *entry = (AliCDBEntry*) - AliCDBManager::Instance()->Get("EMCAL/Calib/Pedestals"); + AliCDBManager::Instance()->Get("EMCAL/Calib/Pedestals"); if (entry) fPedestalData = (AliCaloCalibPedestal*) entry->GetObject(); } @@ -145,8 +145,10 @@ AliEMCALReconstructor::~AliEMCALReconstructor() // dtor if(fGeom) delete fGeom; - if(fCalibData) delete fCalibData; - if(fPedestalData) delete fPedestalData; + + //No need to delete, recovered from OCDB + //if(fCalibData) delete fCalibData; + //if(fPedestalData) delete fPedestalData; if(fgDigitsArr){ fgDigitsArr->Clear("C"); -- 2.43.0