Ticket #45572

Unit requirements vector freed only when unit has helptext

오픈 날짜: 2022-09-05 06:09 마지막 업데이트: 2022-09-17 16:43

Reporter:
소유자:
Type:
Status:
Closed
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
1

Details

unit_type_free() does requirement_vector_free(&(punittype->build_reqs)); within a "if (NULL != punittype->helptext) {" -block. So the requirement vector is not freed if the unit has no hand-written helptext.

I found this when I were looking if a bug could be explained by some unit requirements from earlier rulesets leaking to a newly loaded one. Not sure if this one could have such an effect.

Ticket History (3/4 Histories)

2022-09-05 06:09 Updated by: cazfi
  • New Ticket "Unit requirements vector freed only when unit has helptext" created
2022-09-05 06:16 Updated by: cazfi
  • 소유자 Update from (None) to cazfi
  • Resolution Update from None to Accepted
2022-09-17 16:43 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login