Skip to content

Commit

Permalink
ALIROOT-6964 The variable size arrays were deleted, but the size was …
Browse files Browse the repository at this point in the history
…not set to 0 which caused problems in Root IO. Fixed now + some cleanup
  • Loading branch information
hristov authored and hristov committed Mar 2, 2017
1 parent f703afa commit 4b24f73
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions STEER/AOD/AliAODRecoDecay.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -759,15 +759,15 @@ void AliAODRecoDecay::DeleteRecoD(){
if(fPx) {delete [] fPx; fPx=NULL;}
if(fPy) {delete [] fPy; fPy=NULL;}
if(fPz) {delete [] fPz; fPz=NULL;}
if(fd0) { delete [] fd0; fd0=NULL; }
if(fDCA) { delete [] fDCA; fDCA=NULL; }
delete [] fPID;fPID=NULL;
if(fd0) {delete [] fd0; fd0=NULL;}
if(fDCA) {delete [] fDCA; fDCA=NULL;}
if(fPID) {delete [] fPID; fPID=NULL;}

fNProngs = 0;
fNDCA=0;
fNPID=0;

if(fCharge) fCharge = 0;
fCharge = 0;
delete fOwnSecondaryVtx; fOwnSecondaryVtx=NULL;
return;
}
//--------------------------------------------------------------------------

0 comments on commit 4b24f73

Please sign in to comment.