From f436adf203bead8a29e220c273e933156c3e83c5 Mon Sep 17 00:00:00 2001 From: laphecet Date: Wed, 28 Apr 2010 21:25:18 +0000 Subject: [PATCH] Insure we delete properly if OCDB cache is not set --- MUON/AliMUONCalibrationData.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MUON/AliMUONCalibrationData.cxx b/MUON/AliMUONCalibrationData.cxx index b803047137e..64eca8effd7 100644 --- a/MUON/AliMUONCalibrationData.cxx +++ b/MUON/AliMUONCalibrationData.cxx @@ -108,9 +108,9 @@ fConfig(0x0) //_____________________________________________________________________________ AliMUONCalibrationData::~AliMUONCalibrationData() { - /// Destructor. Note that we're the owner of our pointers. - //PH The owner of the objects is CDB, do not delete them! - // Reset(); + /// Destructor. Note that we're the owner of our pointers if the OCDB cache + /// is not set. Otherwise the cache is supposed to take care of them... + if (!(AliCDBManager::Instance()->GetCacheFlag())) Reset(); } //_____________________________________________________________________________ -- 2.43.0