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 932a6a7..c724e19 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    
  
 }