Add public ~AliTRDcalibDB and delete fCalibration in the ~AliTRDtransform to avoid...
authorshahoian <ruben.shahoyan@cern.ch>
Sat, 27 Sep 2014 14:21:28 +0000 (16:21 +0200)
committermkrzewic <mikolaj.krzewicki@cern.ch>
Mon, 29 Sep 2014 08:47:55 +0000 (10:47 +0200)
TRD/AliTRDcalibDB.cxx
TRD/AliTRDcalibDB.h
TRD/AliTRDtransform.cxx

index 2c41215..acd70b6 100644 (file)
@@ -200,7 +200,7 @@ AliTRDcalibDB::~AliTRDcalibDB()
   }
 
   Invalidate();
-
+  fgInstance   = 0;
 }
 
 //_caching functions____________________________________________________________
index 373bb03..bdd8140 100644 (file)
@@ -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
 
index b17d918..6aab7a3 100644 (file)
@@ -168,7 +168,7 @@ AliTRDtransform::~AliTRDtransform()
   //
   // AliTRDtransform destructor
   //
-
+  delete fCalibration;
 }
 
 //_____________________________________________________________________________