Skip to content

Commit 33ced9f

Browse files
Fix bug when deleting objects (#2163)
1 parent ea6edf6 commit 33ced9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/HMPID/src/HmpidTaskClusters.cxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ HmpidTaskClusters::~HmpidTaskClusters()
4444
for (Int_t iCh = 0; iCh < 7; iCh++) {
4545
delete hHMPIDchargeClus[iCh];
4646
delete hHMPIDchargeMipClus[iCh];
47-
delete hHMPIDclusX[7];
48-
delete hHMPIDclusY[7];
47+
delete hHMPIDclusX[iCh];
48+
delete hHMPIDclusY[iCh];
4949
delete hHMPIDpositionClus[iCh];
5050
}
5151
}

0 commit comments

Comments
 (0)