From: hristov Date: Sat, 6 May 2006 21:09:43 +0000 (+0000) Subject: Fixes in the destructor. Small changes in the comments X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=9ff4af8121de7f178a8d9a97e1c7c452f5a894ed;p=u%2Fmrichter%2FAliRoot.git Fixes in the destructor. Small changes in the comments --- diff --git a/TPC/AliTPC.cxx b/TPC/AliTPC.cxx index 2c279d057c4..2a71077004e 100644 --- a/TPC/AliTPC.cxx +++ b/TPC/AliTPC.cxx @@ -181,7 +181,10 @@ AliTPC::~AliTPC() delete fTPCParam; delete fTrackHits; //MI 15.09.2000 // delete fTrackHitsOld; //MI 10.12.2001 - if (fNoiseTable) delete [] fNoiseTable; + + fDigitsArray = 0x0; + delete [] fNoiseTable; + delete [] fActiveSectors; } diff --git a/TPC/AliTPC.h b/TPC/AliTPC.h index a1a88b9d73a..399b5d39ea5 100644 --- a/TPC/AliTPC.h +++ b/TPC/AliTPC.h @@ -100,10 +100,10 @@ protected: Int_t fSens; // ISENS Int_t fNsectors; // Number of sectors in TPC //MI changes - AliTPCDigitsArray * fDigitsArray; //!detector digit object + AliTPCDigitsArray * fDigitsArray; //! detector digit object AliTPCParam *fTPCParam; // pointer to TPC parameters - AliTPCTrackHitsV2 *fTrackHits; //!hits for given track M.I. - // AliTPCTrackHits *fTrackHitsOld; //!hits for given track M.I. MIold - + AliTPCTrackHitsV2 *fTrackHits; //! hits for given track M.I. + // AliTPCTrackHits *fTrackHitsOld; //! hits for given track M.I. MIold - Int_t fHitType; // if fNewHit = 1 old data structure if 2 new hits if 4 old MI stucture // 3 both types @@ -127,10 +127,10 @@ protected: // index[1] sector number, // index[2] pad row number // index[3] pad row number for which signal is calculated - Int_t fNoiseDepth; //!noise table - Float_t * fNoiseTable; //![fNoiseDepth] table with noise - Int_t fCurrentNoise; //!index of the noise in the noise table - Bool_t* fActiveSectors; //!bool indicating which sectors are active + Int_t fNoiseDepth; //! noise table + Float_t * fNoiseTable; //! table with noise + Int_t fCurrentNoise; //! index of the noise in the noise table + Bool_t* fActiveSectors; //! bool indicating which sectors are active ClassDef(AliTPC,12) // Time Projection Chamber class };