Skip to content

Commit

Permalink
Delete the CDB objects only if the CDB cache is not active
Browse files Browse the repository at this point in the history
  • Loading branch information
hristov authored and hristov committed Apr 23, 2015
1 parent e920a9b commit fc09448
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions ZDC/ZDCrec/AliZDCReconstructor.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,17 @@ AliZDCReconstructor::~AliZDCReconstructor()
{
// destructor
// if(fgRecoParam) delete fgRecoParam;
if(fPedData) delete fPedData;
if(fEnCalibData) delete fEnCalibData;
if(fSatCalibData) delete fSatCalibData;
if(fTowCalibData) delete fTowCalibData;
if(fgMBCalibData) delete fgMBCalibData;
if(fTDCCalibData) delete fTDCCalibData;
if(fMapping) delete fMapping;
if(fESDZDC) delete fESDZDC;
AliCDBManager * man = AliCDBManager::Instance();
if (man && !man->GetCacheFlag()) { // CDB objects must NOT be deleted if cache is active!
if(fPedData) delete fPedData;
if(fEnCalibData) delete fEnCalibData;
if(fSatCalibData) delete fSatCalibData;
if(fTowCalibData) delete fTowCalibData;
if(fgMBCalibData) delete fgMBCalibData;
if(fTDCCalibData) delete fTDCCalibData;
if(fMapping) delete fMapping;
}
if(fESDZDC) delete fESDZDC;
}

//____________________________________________________________________________
Expand Down

0 comments on commit fc09448

Please sign in to comment.