Correcting delete
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Aug 2004 19:33:29 +0000 (19:33 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 11 Aug 2004 19:33:29 +0000 (19:33 +0000)
HLT/hough/AliL3HoughMaxFinder.cxx
HLT/src/AliL3Fitter.cxx

index a9babc5..64b4d1a 100644 (file)
@@ -1005,7 +1005,7 @@ void AliL3HoughMaxFinder::FindAdaptedRowPeaks(Int_t kappawindow,Int_t xsize,Int_
   fN2PeaksPrevEtaSlice = fNPeaks;
 
   for(Int_t i=0; i<hist->GetNbinsY(); i++)
-    delete localmaxima[i];
+    delete [] localmaxima[i];
 
   delete [] localmaxima;
   delete [] nmaxs;
index b5405ac..381b11e 100644 (file)
@@ -52,7 +52,7 @@ AliL3Fitter::~AliL3Fitter()
       for(Int_t j=0; j<6; j++)
        {
          if(fClusters[i][j])
-           delete fClusters[i][j];
+           delete [] fClusters[i][j];
        }
     }
 }