任务单 #44790

gtk2: repodlgs.c "dangling pointer to 'tech_name' may be used"

开放日期: 2022-06-11 10:56 最后更新: 2022-06-13 01:06

报告人:
属主:
类型:
状态:
关闭
组件:
里程碑:
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
Fixed
文件:
3

Details

Building S3_0 with gcc-12 and -O3 failed on gtk2-client repodlgs.c to several "dangling pointer to 'tech_name' may be used" -warnings.

I've not yet checked if other gtk-clients / other branches are affected.

Given that gcc-12 is stable already, I think we should postpone 3.0.2 release for this (especially if other gtk-clients are affected)

任务单历史 (3/8 Histories)

2022-06-11 10:56 Updated by: cazfi
  • New Ticket "gtk2: repodlgs.c "dangling pointer to 'tech_name' may be used"" created
2022-06-11 11:22 Updated by: cazfi
评论

All gtk-clients are affected. Don't really know how the compiler gets warning like that out of it, but I noticed that the use of gtk_tree_model_get() in science_report_combo_get_active() (and callers) doesn't really comply with gtk documentation, but results in memory leak. Fixing that made also the compiler warning to go away.

2022-06-11 11:35 Updated by: cazfi
  • 属主 Update from (无) to cazfi
  • 处理结果 Update from to Accepted
  • 组件 Update from (无) to Gtk3.22-client
评论

S3_0 patch attached - may push this earlier than to other branches, to unblock 3.0.2 release.

2022-06-11 12:29 Updated by: cazfi
评论

Patches for the remaining branches attached. Will push S3_0 patch to S2_6 too.

2022-06-13 01:06 Updated by: cazfi
  • 状态 Update from 开启 to 关闭
  • 处理结果 Update from Accepted to Fixed

编辑

Please login to add comment to this ticket » 登录名