]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Posible memory leak fixed. Changes AliITSpList destructor. Not clear if
authornilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 29 Apr 2002 21:30:08 +0000 (21:30 +0000)
committernilsen <nilsen@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 29 Apr 2002 21:30:08 +0000 (21:30 +0000)
absolutly needed.

ITS/AliITSpList.cxx

index ace7ecf5e4f5ec306037100eb627351117f8def1..8a79db915fd789c5b3b337ff6264f45d6196bf4f 100644 (file)
@@ -304,17 +304,10 @@ AliITSpListItem::~AliITSpListItem(){
     //    none.
     // Return:
     //    A properly destroyed AliITSpListItem class.
-/*
-    this->fmodule = 0;
-    this->findex  = 0;
-    for(Int_t i=0;i<=this->GetNsignals();i++){
-        this->fTrack[i]  = 0;
-        this->fSignal[i] = 0.0;
-        this->fHits[i]   = 0;
-    } // end if i
-    this->fTsignal = 0.0;
-    this->fNoise   = 0.0;
-*/    
+
+    if(!fTrack)  delete [] fTrack;
+    if(!fHits)   delete [] fHits;
+    if(!fSignal) delete [] fSignal;
 }
 //______________________________________________________________________
 AliITSpListItem& AliITSpListItem::operator=(const AliITSpListItem &source){