Skip to content

Commit

Permalink
Fixed memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
hristov committed Aug 21, 2007
1 parent eed5265 commit 64a6b37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion TRD/AliTRDrawData.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -489,13 +489,13 @@ Int_t AliTRDrawData::ProduceHcDataV3(AliTRDdataArrayI *digits, Int_t side
of++;
}

AliTRDmcmSim *mcm = new AliTRDmcmSim();

// Scan for ROB and MCM
for (Int_t iRobRow = 0; iRobRow < (kCtype + 3); iRobRow++ ) {
Int_t iRob = iRobRow * 2 + side;
for (Int_t iMcm = 0; iMcm < fGeo->MCMmax(); iMcm++ ) {

AliTRDmcmSim *mcm = new AliTRDmcmSim();
mcm->Init( det, iRob, iMcm );
Int_t padrow = mcm->GetRow();

Expand Down Expand Up @@ -524,6 +524,9 @@ Int_t AliTRDrawData::ProduceHcDataV3(AliTRDdataArrayI *digits, Int_t side
} else {
nw += temp_nw;
}

delete mcm;

}
}

Expand Down

0 comments on commit 64a6b37

Please sign in to comment.