Bug fix: correct deletion of fGRPList in case of CDB cache
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Feb 2008 14:13:06 +0000 (14:13 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 18 Feb 2008 14:13:06 +0000 (14:13 +0000)
STEER/AliReconstruction.cxx

index ee52387..71ab1fe 100644 (file)
@@ -2074,10 +2074,10 @@ void AliReconstruction::CleanUp(TFile* file, TFile* fileOld)
   if(!(AliCDBManager::Instance()->GetCacheFlag())) {
        delete fDiamondProfile;
        fDiamondProfile = NULL;
+       delete fGRPList;
+       fGRPList = NULL;
   }
 
-  delete fGRPList;
-  fGRPList = NULL;
 
   delete fRunLoader;
   fRunLoader = NULL;