Skip to content

Commit

Permalink
ALIROOT-5498 porting of "delete -> delete[]" fix for AliESDtrack::Add…
Browse files Browse the repository at this point in the history
…TOFCluster
  • Loading branch information
shahor02 authored and hristov committed Jun 30, 2014
1 parent def8f9c commit d753556
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions STEER/ESD/AliESDtrack.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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

}

Expand Down

0 comments on commit d753556

Please sign in to comment.