memory fixes
authorshahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 27 Apr 2013 23:36:49 +0000 (23:36 +0000)
committershahoian <shahoian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 27 Apr 2013 23:36:49 +0000 (23:36 +0000)
ITS/UPGRADE/AliITSU.cxx
ITS/UPGRADE/AliITSUSegmentationPix.cxx
ITS/UPGRADE/AliITSUSegmentationPix.h
ITS/UPGRADE/AliITSUTrackCond.cxx

index 7eadca1..4c9bb51 100644 (file)
@@ -189,7 +189,7 @@ AliITSU::~AliITSU()
     delete[] fSegModelLr;
   }
   //
-  delete fResponseLr; // note: the response data is owned by the CDBManager, we don't delete them
+  delete[] fResponseLr; // note: the response data is owned by the CDBManager, we don't delete them
   //
   delete[] fLayerName;  // Array of TStrings
   delete[] fIdSens;
index 1265199..c95d8c1 100644 (file)
@@ -81,6 +81,15 @@ AliITSUSegmentationPix::AliITSUSegmentationPix(UInt_t id, int nchips,int ncol,in
 }
 
 //_____________________________________________________________________________RS
+AliITSUSegmentationPix::~AliITSUSegmentationPix()
+{
+  // d-tor
+  delete[] fDiodShidtMatX;
+  delete[] fDiodShidtMatZ;
+}
+
+
+//_____________________________________________________________________________RS
 void AliITSUSegmentationPix::GetPadIxz(Float_t x,Float_t z,Int_t &ix,Int_t &iz) const 
 {
   //  Returns pixel coordinates (ix,iz) for given coordinates (x,z counted from corner of col/row 0:0)
index 5d98fac..fb5916b 100644 (file)
@@ -18,7 +18,7 @@ public AliITSsegmentation {
   
   //  AliITSUSegmentationPix(Option_t *opt="" );
   AliITSUSegmentationPix(const AliITSUSegmentationPix &source);
-  virtual ~AliITSUSegmentationPix() {}
+  virtual ~AliITSUSegmentationPix();
   AliITSUSegmentationPix& operator=(const AliITSUSegmentationPix &source);
   //
   virtual void    Init();
index db0eee1..b8e576f 100644 (file)
@@ -91,13 +91,13 @@ void AliITSUTrackCond::SetNLayers(int nLayers)
   // set number of layers
   fInitDone = kFALSE;
   if (fNLayers) {
-    delete fClSharing;
-    delete fMaxBranches;
-    delete fMaxCandidates;
-    delete fMaxTr2ClChi2;
-    delete fMissPenalty;
-    delete fNSigmaRoadY;
-    delete fNSigmaRoadZ;
+    delete[] fClSharing;
+    delete[] fMaxBranches;
+    delete[] fMaxCandidates;
+    delete[] fMaxTr2ClChi2;
+    delete[] fMissPenalty;
+    delete[] fNSigmaRoadY;
+    delete[] fNSigmaRoadZ;
   }
   fNLayers = nLayers;
   //