From 542f5ad1c1a7c916676d3419cd3a930933edaea4 Mon Sep 17 00:00:00 2001 From: shahoian Date: Sat, 27 Sep 2014 16:21:28 +0200 Subject: [PATCH] Add public ~AliTRDcalibDB and delete fCalibration in the ~AliTRDtransform to avoid crash in new AliReconstruction session --- TRD/AliTRDcalibDB.cxx | 2 +- TRD/AliTRDcalibDB.h | 3 +-- TRD/AliTRDtransform.cxx | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/TRD/AliTRDcalibDB.cxx b/TRD/AliTRDcalibDB.cxx index 2c412156a67..acd70b6a258 100644 --- a/TRD/AliTRDcalibDB.cxx +++ b/TRD/AliTRDcalibDB.cxx @@ -200,7 +200,7 @@ AliTRDcalibDB::~AliTRDcalibDB() } Invalidate(); - + fgInstance = 0; } //_caching functions____________________________________________________________ diff --git a/TRD/AliTRDcalibDB.h b/TRD/AliTRDcalibDB.h index 373bb03933e..bdd814007f1 100644 --- a/TRD/AliTRDcalibDB.h +++ b/TRD/AliTRDcalibDB.h @@ -57,7 +57,7 @@ class AliTRDcalibDB : public TObject { static AliTRDcalibDB *Instance(); static void Terminate(); - + virtual ~AliTRDcalibDB(); void SetRun(Long64_t run); Long64_t GetRun() const { return fRun; } @@ -210,7 +210,6 @@ class AliTRDcalibDB : public TObject { AliTRDcalibDB(); // This is a singleton, constructor is private! AliTRDcalibDB(const AliTRDcalibDB &c); AliTRDcalibDB &operator=(const AliTRDcalibDB &c); - virtual ~AliTRDcalibDB(); ClassDef(AliTRDcalibDB, 8) // Provides central access to the CDB diff --git a/TRD/AliTRDtransform.cxx b/TRD/AliTRDtransform.cxx index b17d918b98a..6aab7a30a5a 100644 --- a/TRD/AliTRDtransform.cxx +++ b/TRD/AliTRDtransform.cxx @@ -168,7 +168,7 @@ AliTRDtransform::~AliTRDtransform() // // AliTRDtransform destructor // - + delete fCalibration; } //_____________________________________________________________________________ -- 2.43.0