]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Insure we delete properly if OCDB cache is not set
authorlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Apr 2010 21:25:18 +0000 (21:25 +0000)
committerlaphecet <laphecet@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Apr 2010 21:25:18 +0000 (21:25 +0000)
MUON/AliMUONCalibrationData.cxx

index b803047137eb26dd56e4f720a1fd4dd96c7f57e3..64eca8effd7f0550111c70437ff33d76bc738073 100644 (file)
@@ -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();
 }
 
 //_____________________________________________________________________________