]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSmodule.cxx
bug correction (unnecessary const in GetValue)
[u/mrichter/AliRoot.git] / ITS / AliITSmodule.cxx
index 9d0c40a183d3e87b1a15b79aa02ce79e1c84ae3b..d18710d7a951e300d9e0780f136c0d5d01678e95 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.15  2003/03/21 13:58:14  masera
+Fix to avoid out-of-detector fast rec points (problem occurring for tracks entering and exiting the same side of a sensitive volume)
+
 Revision 1.14  2002/10/14 14:57:00  hristov
 Merging the VirtualMC branch to the main development branch (HEAD)
 
@@ -126,10 +129,9 @@ AliITSmodule::~AliITSmodule() {
     // we must first destroy all of it's members.
 
     if(fHitsM){
-       for(Int_t i=0;i<fHitsM->GetEntriesFast();i++) 
-           delete ((AliITShit *)(fHitsM->At(i)));
-       // must delete each object in the TObjArray.
-       delete fHitsM;
+      fHitsM->Delete();
+      delete fHitsM;
+      fHitsM = 0;
     } // end if
     delete fTrackIndex;
     delete fHitIndex;