#46660: Qt: Crash with "-- --help" Open Date: 2023-01-30 09:23 Last Update: 2023-01-31 09:18 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/46660 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46660 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-01-31 09:18 Updated by: cazfi Comment: Attached the patch forgotten earlier. --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Bugs Status: Open [Owner assigned] Priority: 5 - Medium MileStone: 3.0.6 Component: Qt-client Severity: 5 - Medium Resolution: Accepted --------------------------------------------------------------------- Ticket details: Qt-client crashes exiting after showing help for "-- --help". That's because there's no tileset loaded on such a run, but client_exit() unconditionally tries to free it. Note that other clients do not even attempt such controlled exit, but just exit() directly from parameter parsing after handling --help. We probably should make them to do the right thing too. -- 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/46660 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46660