[Freeciv-tickets] [freeciv] #44790: gtk2: repodlgs.c "dangling pointer to 'tech_name' may be used"

Zurück zum Archiv-Index
OSDN Ticket System norep****@osdn*****
Sat Jun 11 11:22:29 JST 2022


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

  Open Date: 2022-06-11 04:56
Last Update: 2022-06-11 05:22

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/44790
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44790

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-06-11 05:22 Updated by: cazfi

Comment:

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.

---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: (None)
          Type: Bugs
        Status: Open
      Priority: 5 - Medium
     MileStone: 3.0.2
     Component: (None)
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket 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)

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/44790
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44790



More information about the Freeciv-tickets mailing list
Zurück zum Archiv-Index