g_option_context_help: don't modify the input data
authorDan Winship <danw@gnome.org>
Thu, 23 Aug 2012 16:39:26 +0000 (12:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 3 Feb 2013 05:46:52 +0000 (00:46 -0500)
commit39a528b9fdf7b16c81bf5338a4b7dd4fd5318dea
treef2d2110e2096d41f8d0a5cd2da02f72a953f0729
parentab328469f5cab5681e5564893938a48fe5c2222f
g_option_context_help: don't modify the input data

If there are options that need their names to be aliased, keep track
of that internally rather than modifying the passed-in GOptionGroup
(and leaking strings in the process).

https://bugzilla.gnome.org/show_bug.cgi?id=682560
glib/goption.c