add protection against unproper delete of the recparam objects (A.Colla)
authorarcelli <arcelli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Nov 2007 08:46:30 +0000 (08:46 +0000)
committerarcelli <arcelli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 14 Nov 2007 08:46:30 +0000 (08:46 +0000)
TOF/AliTOFtracker.cxx
TOF/AliTOFtrackerV1.cxx

index 71d911e70e751868adc5c0fc607c4e8555ffd644..f100dc3d1221f9176b7cb4a6a8d52262ed2a8f8f 100644 (file)
@@ -177,7 +177,9 @@ AliTOFtracker::~AliTOFtracker() {
 
   SaveCheckHists();
 
-  delete fRecoParam; 
+  if(!(AliCDBManager::Instance()->GetCacheFlag())){
+    delete fRecoParam;
+  }
   delete fGeom; 
   delete fPid; 
   delete fHDigClusMap;
index dc5b2f1c27d3d3908b63c9b5a01411c58667eb34..42f9f287882251a28ce3146f6bea62830fd110fc 100644 (file)
@@ -160,7 +160,9 @@ AliTOFtrackerV1::~AliTOFtrackerV1() {
 
   SaveCheckHists();
 
-  delete fRecoParam; 
+  if(!(AliCDBManager::Instance()->GetCacheFlag())){
+    delete fRecoParam;
+  }
   delete fPid; 
   delete fHDigClusMap;
   delete fHDigNClus;