Fixed correction for bug #65093. One should learn C++ before doing what was done...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Apr 2010 13:39:45 +0000 (13:39 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 7 Apr 2010 13:39:45 +0000 (13:39 +0000)
PHOS/AliPHOSGeoUtils.cxx

index 7d70510..4d0cc3d 100644 (file)
@@ -150,9 +150,13 @@ AliPHOSGeoUtils::~AliPHOSGeoUtils(void)
     delete fMisalArray; fMisalArray=0 ;
   }
 
-  delete [] fStripMatrix;
-  delete [] fEMCMatrix;
-  delete [] fCPVMatrix;
+  for(Int_t mod=0; mod<5; mod++){
+    delete fEMCMatrix[mod] ;
+    for(Int_t istrip=0; istrip<224; istrip++)
+      delete fStripMatrix[mod][istrip];
+    delete fCPVMatrix[mod];
+    //    delete fPHOSMatrix[mod];
+  }
 }
 //____________________________________________________________________________
 Bool_t AliPHOSGeoUtils::AbsToRelNumbering(Int_t absId, Int_t * relid) const