]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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)
committershahoian <ruben.shahoyan@cern.ch>
Sat, 27 Sep 2014 14:21:48 +0000 (16:21 +0200)
TRD/AliTRDcalibDB.cxx
TRD/AliTRDcalibDB.h
TRD/AliTRDtransform.cxx

index 2c412156a67c4949dbd1cd1fa82e0f179faea9f8..acd70b6a258417947d65139cdf82b0fab091d56f 100644 (file)
@@ -200,7 +200,7 @@ AliTRDcalibDB::~AliTRDcalibDB()
   }
 
   Invalidate();
-
+  fgInstance   = 0;
 }
 
 //_caching functions____________________________________________________________
index 373bb03933ec0ca0e1b34d9d463674e90bbd19a7..bdd814007f17fbc1477ea3345cdf9ae089227069 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 b17d918b98ab3ac8f8dd0a86e1d166057475be95..6aab7a30a5a45928c7bc38f0bdd5ba26c0ca8cc0 100644 (file)
@@ -168,7 +168,7 @@ AliTRDtransform::~AliTRDtransform()
   //
   // AliTRDtransform destructor
   //
-
+  delete fCalibration;
 }
 
 //_____________________________________________________________________________