]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
fix in delete -> delete[]
authorshahoian <ruben.shahoyan@cern.ch>
Tue, 24 Jun 2014 07:44:41 +0000 (09:44 +0200)
committershahoian <ruben.shahoyan@cern.ch>
Tue, 24 Jun 2014 07:44:55 +0000 (09:44 +0200)
STEER/ESD/AliESDtrack.cxx

index 932a6a75e8fd54ff4bbaacae96b722334b609b4c..c724e1971e1384ebcfbc77c7a950cf00d2c86200 100644 (file)
@@ -3058,10 +3058,7 @@ void AliESDtrack::AddTOFcluster(Int_t icl)
   for(Int_t i=0;i < fNtofClusters-1;i++) fTOFcluster[i] = old[i];
   fTOFcluster[fNtofClusters-1] = icl;
 
-  if(fNtofClusters-1){ // delete previous content    
-    delete old;
-    old = NULL;
-  }
+  if(fNtofClusters-1)  delete[] old; // delete previous content    
  
 }